For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > March 2008 > Re: socket programming using MSG_WAITALL for receiving multicast









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: socket programming using MSG_WAITALL for receiving multicast
jiangxu168@gmail.com

2008-03-20, 7:15 pm

On Mar 20, 4:11=A0pm, David Schwartz <dav...@webmaster.com> wrote:
> On Mar 20, 2:00 pm, jiangxu...@gmail.com wrote:
>
>
> It returns when the entire message is received.
>
>
> Because you have received the entire message. In a datagram protocol,
> each datagram is a message.
>
>
> No.
>
>
> Don't worry about it. You will only get frequent context switches if
> there's nothing else to do. If there's nothing else to do, why should
> you care if there are lots of context switches?
>
> DS


I am receiving high bit rate streamming data such as Video data. I
think it will be more efficient with less context switch between
kernel and user space. So if the kernel can accumulate more packets
before wake up the function, it should be more CPU efficient, right?

John
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com