Path: utzoo!mnetor!uunet!mcvax!unido!rmi!shimoda From: shimoda@rmi.UUCP (Markus Schmidt) Newsgroups: comp.sys.amiga Subject: Re: Processes and the Like. Message-ID: <913@rmi.UUCP> Date: 9 Mar 88 15:12:12 GMT References: <4561@garfield.UUCP> Reply-To: shimoda@rmi.UUCP (Markus Schmidt) Organization: RMI Net, Aachen, W.Germany Lines: 47 Keywords: processes under manx In article <4561@garfield.UUCP> derick@garfield.UUCP (Derick Linegar) writes: : I would like to know how to set up mutliple processes within a program : under MANX. All the code examples I have seen so far in the literature : uses LATTICE. (Nice example, Rob Peck .. ) And since I do not own : lattice, can anyone supply me an example??? : Here u are: main() { void AnotherTask(); .... some code ... CreateTask("This is the Name", 0L, AnotherTask, 4000L); /* name prior., code, stacksize */ .... other code while (FindTask("This is the Name")) Delay(50L); } void AnotherTask() { int this, that; char foo; geta4(); /* THAT"S IMPORTANT IF YOU HAVE SMALL CODE ADDRESSING */ ... taskstuff ... } It is also described somewhere in the Manx manuel chapter "tech.info". Hope to have helped you! Markus (shimoda@rmi.uucp) Ahh: I nearly forgot: The last lines in main() are to make sure, that the task has completet before your main program is finished. If you would finish without doin that, the task would run in unallocated memory, and that is a really sure way to meditation!