lkml.org 
[lkml]   [2000]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How to change the time-slice value ?
tdanis@canal-plus.fr wrote:
> How is it possible to change (run-time) the time-slice value applied to the
> Linux threads ?

I suppose you are talking about kernel-level POSIX-compatible threads
included in the current glibc2 used by the Linux kernel.
In that case you cannot change the timeslice, which is the default
Linux process timeslice. The Linux scheduler handle each thread almost
like an usual process.

> Could it be some parameter to the pthread_attr_setschedparam
> function ?

No.

> If not, which is its default value ?

Same than usual processes time-slice, which depends on your system
hardware (correct me if I'm wrong there).
If you need that level of granularity, I suggest you to switch to a
real-time modified Linux kernel. But that would probably mean
redesigning your application heavily.

Hope it helps,

Pierre
--
PARALLINE Pierre BRUA Parallelism & Linux
71,av. des Vosges Phone:+33 388 141 740 mailto:brua@paralline.com
F-67000 STRASBOURG Fax:+33 388 141 741 http://www.paralline.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:37    [W:0.030 / U:4.100 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site