![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: May 2008
Posts: 7
Rep Power: 0
![]() |
nice for pthreads? (linux)
With Linux kernel 2.6
nice() called inside a pthread affects only the calling thread or all threads of the process?? (I guess in POSIX it affects the process, but Linux is not fully POSIX compliant cause threads are actually processes for the kernel scheduler) In case it affects all process's threads, is there a call something like pthread_nice() to affect one thread only? Please do not answer set_sched_param() cause that will not work for SCHED_OTHER policy as stated here "pthread_setschedparam sets the scheduling parameters for the thread target_thread as indicated by policy and param. policy can be either SCHED_OTHER (regular, non-realtime scheduling), SCHED_RR (realtime, round-robin) or SCHED_FIFO (realtime, first-in first-out). param specifies the scheduling priority for the two realtime policies. See sched_setpolicy(2) for more information on scheduling policies. " at http://www.linuxmanpages.com/man3/pt...param.3thr.php |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Slackware installation guide for Linux beginners | coldDeath | Coder's Corner Lounge | 104 | Jul 29th, 2007 4:40 AM |
| My views on Linux | Marvin | Coder's Corner Lounge | 70 | Dec 19th, 2006 11:13 AM |
| Linux is Annoying (Ubuntu) | Baphomet | Coder's Corner Lounge | 6 | Dec 1st, 2006 8:42 AM |
| Linux vs. Vista == Linux vs. XP? | pal | Coder's Corner Lounge | 17 | Dec 5th, 2005 8:57 AM |
| windows memset and Linux memset (difference?) | Dr.Backtick` | C++ | 0 | Feb 5th, 2005 7:59 PM |