micky@tut.cis.ohio-state.edu (Mayank Choudhary) (11/18/87)
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. -------------------------------------------------------