Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 7th, 2008, 12:27 PM   #1
mynickmynick
Newbie
 
Join Date: May 2008
Posts: 7
Rep Power: 0 mynickmynick is on a distinguished road
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
mynickmynick is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC