2003-07-18 18:22:19

by Guanhua Yan

[permalink] [raw]
Subject: pthread in linux

does anyone know the default time slice for each pthread execution in linux?
is it 1/60 sec? thanks!

- guanhua

--
%%%%%%%%%%%%%%%%%%%%%%%%%
Guanhua Yan, Ph.D. Student
Department of Computer Science
Institute for Security Technology Studies
Dartmouth College, Hanover, NH 03755
email: [email protected]
phone: 603-646-0683
homepage: http://www.cs.dartmouth.edu/~ghyan
%%%%%%%%%%%%%%%%%%%%%%%%%


2003-07-18 19:22:51

by Robert Love

[permalink] [raw]
Subject: Re: pthread in linux

On Fri, 2003-07-18 at 11:37, Guanhua Yan wrote:

> does anyone know the default time slice for each pthread execution in linux?
> is it 1/60 sec? thanks!

It is the same as the default process timeslice, and that would depend
on your kernel version.

Currently, in 2.6.0-test1, it ranges from 10ms to 200ms, depending on
priority, with a default of 200ms.

Robert Love


2003-07-18 19:28:32

by Robert Love

[permalink] [raw]
Subject: Re: pthread in linux

On Fri, 2003-07-18 at 12:43, Robert Love wrote:

> Currently, in 2.6.0-test1, it ranges from 10ms to 200ms, depending on
> priority, with a default of 200ms.

Err, with a default of 100ms.

Robert Love