Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!cornell!rochester!udel!mmdf From: CWPLCAP%PACEVM.BITNET@cunyvm.cuny.edu (Anthony Passante) Newsgroups: comp.sys.amiga Subject: Simple Multitasking Message-ID: <17835@louie.udel.EDU> Date: 16 Jun 89 15:01:22 GMT Sender: mmdf@udel.EDU Lines: 22 Dear Relay, I am desperately trying to write a simple program that will create two simultaniously running tasks that share a few variables. I have read through the ROM Kernal Manual and also the manuals by Mortimere and Peck but still cannot seen to get it working correctly. I haven't found any example code in these manuals to assist me. If there is anyone out there that knows how to do this or has a written piece of code that they can send to me, I would greatly appreciate it. Program Explination: The program is a simulation of a Bounded Buffer. The main program creates a structure with a lower bound of 0 and an upper bound of 10. Its initial value is set to 5. Then, two tasks are created. One task adds to the buffer while the other task takes from it. I tried to get this working for a few weeks but could not get the tasks to run at the same time. Again, if you know how to spawn concurrently running tasks, please send me the explination or example code. thanks, Tony