[comp.sys.amiga] What is the max. number of tasks ?

ccemdd@rivm.UUCP (Marco Dedecker) (06/12/89)

Here is a simple question : what is the maximum number of tasks
that can be active at the same time ?

I can't seem to find the anwser to this question anywhere.
So I tried something.

I was able to open 20 NEWCLI windows, every window has two tasks :
- CON
- Newcli

I already had the following tasks : 
	- RAM
	- File System
	- Trackdisk
	- input.device
	- CON

So I had 20*2 + 5 = 45 tasks.

Is 45 Tasks the maximum number of tasks ???

Marco Dedecker

dillon@HERMES.BERKELEY.EDU (Matt Dillon) (06/13/89)

:Here is a simple question : what is the maximum number of tasks
:that can be active at the same time ?
:
:I can't seem to find the anwser to this question anywhere.
:So I tried something.
:
:I was able to open 20 NEWCLI windows, every window has two tasks :
:- CON
:- Newcli
:
:I already had the following tasks : 
:	- RAM
:	- File System
:	- Trackdisk
:	- input.device
:	- CON
:
:So I had 20*2 + 5 = 45 tasks.
:
:Is 45 Tasks the maximum number of tasks ???
:
:Marco Dedecker

	There is a maximum of 20 CLI's.  Each shell/cli window and each
RUNd program takes up a CLI.  A CLI is a structure managed by DOS and not
really part of a task or process.  A process might *reference* a CLI
structure but it isn't part of a process proper.

	There is NO maximum number of tasks or processes.  System tasks
do not run under a CLI and thus do not take from the CLI limit.  Processes
associated with DOS devices, tasks/processes associated with EXEC devices
and libraries, tasks/processes created by user programs (not RUNd),
and most resident programs are not connected to a CLI and thus do not
take from the CLI limit.

	In fact, it should be noted that an EXEC task takes very little
memory.... just the Task structure, stack, and (possibly shared) code.

	The only limit here is memory.

					-Matt

new@udel.EDU (Darren New) (06/13/89)

I remember seeing a program come through here that would allow more than
20 CLIs, for those that need many. MaxCLI, or some such name. -- Darren

451061%UOTTAWA.BITNET@cornellc.cit.cornell.edu (Valentin Pepelea) (06/14/89)

Marco Dedecker <ccemdd@rivm.uucp> writes in message <1367@rivm05.UUCP>

> Here is a simple question : what is the maximum number of tasks
> that can be active at the same time ?

What does "active" mean? All tasks currently existing? All tasks ready to run?
All tasks waiting or ready to run or what?

> I can't seem to find the anwser to this question anywhere.
> So I tried something.

No wonder!

> I was able to open 20 NEWCLI windows, every window has two tasks :
> So I had 20*2 + 5 = 45 tasks.
> Is 45 Tasks the maximum number of tasks ???

20 Cli windows is a limitation imposed by the current version of AmigaDOS. It
has nothing to do with the number of tasks that Exec allows you to create. To
be specific, you can create 1 billion tasks, ((2^^32)/4), unless you run out of
memory first. This limitation will be fixed in a future release.

Valentin
_________________________________________________________________________
The godess of democracy? "The           Name:   Valentin Pepelea
tyrants may distroy a statue,           Phonet: (613) 231-7476
but they cannot kill a god."            Bitnet: 451061@Uottawa.bitnet
                                        Usenet: Use cunyvm.cuny.edu gate
                   - Confucius          Planet: 451061@acadvm1.UOttawa.CA

stephan@cup.portal.com (Stephen Derek Schaem) (06/14/89)

45 task?! you have a weird logic... Couldn't you run a program from the 
workbench when you had those 45 'tasks'?
 The limit is you memory size.... If you need to have 500 tasks no problems!

stephan@cup.portal.com (Stephen Derek Schaem) (06/14/89)

 I have to say that you are not limited to 20 cli's.... There is a 'patch'
called maxcli that will let you set the number cli you can open on a
window.. I only check with 255 cli window, and I dont know if it's the limit
or not...

ccemdd@rivm.UUCP (Marco Dedecker) (06/15/89)

I wish to thank everybody for replying to my question about the
max. number of tasks.

I didn't know that memory was the only limit for the number of tasks, 
and the stuff about the limit of 20 CLI's was new to me too.

Thanks,

Marco Dedecker