Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does pthreads has an API for configuring the number of LWPs?

API configuring lwps pthreads
0
Posted

Does pthreads has an API for configuring the number of LWPs?

0

“Hany Morcos (CS)” wrote: > Hi, does pthreads has an API for configuring the number of > lwps for a specific sets of threads. Or does most OS’s assign > an lwp per a group of thread. The short answer: PThreads, no. But UNIX98 includes a pthread_setconcurrency() extension to the POSIX thread API. The long answer: First, “LWP” is a Solaris-specific (actually, “UI thread” specific, but who cares?) term for a kernel thread used to allow a threaded process to exploit O/S concurrency and hardware parallelism. So “most OS”s don’t have LWPs, though they do have some form of kernel threads. (Note, this is all probably more than you want or need, but your question is rather “fuzzy”, I tend to prefer to give “too much” information rather than “not enough”, and for some reason I appear to be in a “talkative” mood… 😉 ) POSIX 1003.1c-1995 (“pthreads”) deliberately says very little about implementation details, and provides few interfaces specifically to control details of an implementation. It d

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123