2001-04-09 15:26:25

by Daniel Stutz

[permalink] [raw]
Subject: Where is NR_TASKS gone in 2.4?

How can i get the max. number of tasks in kernel 2.4?

In 2.2 there was a macro NR_TASKS

Daniel

--
--
In God we Trust, all others please submit signed PGP/X.509 key
Daniel Stutz <[email protected]> | Product Development
Astaro AG | http://www.astaro.de | +49-721-490069-0 | Fax -55


2001-04-11 20:23:41

by Robert Schiele

[permalink] [raw]
Subject: Re: Where is NR_TASKS gone in 2.4?

On Mon, Apr 09, 2001 at 05:24:19PM -0700, Daniel Stutz wrote:
> How can i get the max. number of tasks in kernel 2.4?
>
> In 2.2 there was a macro NR_TASKS

2.4 has no hardcoded limit on the number of processes. So NR_TASKS is
not necessary any longer.
But you can read the current value of max threads from
/proc/sys/kernel/threads-max.

Robert

--
Robert Schiele mailto:[email protected]
Tel./Fax: +49-621-10059 http://webrum.uni-mannheim.de/math/rschiele/


Attachments:
(No filename) (471.00 B)
(No filename) (524.00 B)
Download all attachments