Re: Where is NR_TASKS gone in 2.4?

From: Robert Schiele (rschiele@uni-mannheim.de)
Date: Wed Apr 11 2001 - 15:22:50 EST


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:rschiele@uni-mannheim.de
Tel./Fax: +49-621-10059		http://webrum.uni-mannheim.de/math/rschiele/


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 15 2001 - 21:00:17 EST