Select and thread suspension on Kernel 2.6
Hi, Does "select" system call suspend the executing thread or the entire process on Kernel 2.6? The libc documentation online<http://www.gnu.org/software/libc/manual/html_mono/libc.html#Waiting-for-I_00...> states that this system call suspend the process. But I guess it might be a bit outdated. NPTL was integrated on Kernel 2.6, and for me it sounds more reasonable from that point in time onward to have "select" only suspending the executing thread for the incoming and outgoing data. Regards, Francisco
Hi Francisco.... On Fri, Nov 23, 2012 at 5:42 PM, Francisco Jares Junior <francisco.jares@gmail.com> wrote:
Hi,
Does "select" system call suspend the executing thread or the entire process on Kernel 2.6?
I guess, now as you already guessed too, it only suspend the caller thread. NPTL uses 1:1 model, so if one threads block, others will keep running -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
participants (2)
-
Francisco Jares Junior -
Mulyadi Santosa