Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!oberon!cit-vax!ucla-cs!zen!ucbvax!cbosgd!osu-cis!tut!micky From: micky@tut.cis.ohio-state.edu (Mayank Choudhary) Newsgroups: comp.sys.encore Subject: Tasks and stacksize(s) Message-ID: <1844@tut.cis.ohio-state.edu> Date: Tue, 17-Nov-87 17:05:52 EST Article-I.D.: tut.1844 Posted: Tue Nov 17 17:05:52 1987 Date-Received: Sat, 21-Nov-87 00:02:55 EST Organization: Ohio State Computer & Info Science Lines: 27 Hi! How are the mem param of task_init and the stacksize params of task_init and task_start related? Logically, mem is total memory allocated, out of which stacksize amount is given to each task, right? Well, i started out by setting mem to 40000 and stacksize of task_init to 4000. From the procedure p, of task_init, I created 4 more tasks each with 5000 bytes of stacksize. That totals up to 24000 bytes. On running the program, it stops after starting 3/4 tasks, with perror stating that it was an unknown error. The man page says, task start fails if for example it fails to allocate stack space. I have changed numbers to no avail. What other reasons are there? Any suggestions, comments on my understanding of this mem allocation stuff, be grately appreciated. Cheers micky --- -- ---- micky@tut.cis.ohio-state.edu There is a fine line between pleasure and pain. -------------------------------------------------------