home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!chalmers.se!news.chalmers.se!dtek.chalmers.se!d9hh
- From: d9hh@dtek.chalmers.se (Henrik Harmsen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: How to program multi-threaded programs on Amiga ?
- Message-ID: <d9hh.720829520@dtek.chalmers.se>
- Date: 3 Nov 92 22:25:20 GMT
- References: <d9hh.720658421@dtek.chalmers.se> <1992Nov3.192244.15235@jato.jpl.nasa.gov>
- Sender: news@news.chalmers.se
- Organization: Chalmers University of Technology, Gothenburg Sweden
- Lines: 38
- Nntp-Posting-Host: hacker.dtek.chalmers.se
-
- jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
-
- >In article <d9hh.720658421@dtek.chalmers.se> d9hh@dtek.chalmers.se (Henrik Harmsen) writes:
- >>
- >>My particular problem is this: I need a process to run concurrently
- >>with the rest of the program to handle input from the OS. Then,
- >>when it has some input, it should put it on a buffer and signal
- >>it's arrival with some kind of semaphore so the consumer-process
- >>can go and collect it.
-
- >When the OS (IDCMP) sends you a message it will append the message to
- >the message port (UserPort) and set the signal associated with it. To
- >have a seperate process do this for you wouldn't be necessary. The arri-
- >val of these messages and the setting of the signal bit are asynchronous.
-
- >oThe reason I need this structure is that I want the program to
- >>be able to cope with a lot of messages from the OS (because
- >>I need to read mouse-positions all the time) and at the
- >>same time do some heavy work in the editor without having
- >>to collect messages all the time.
-
- >The messages would collect by themselves. You wouldn't have to explicitly
- >do this.
-
- >jeff
-
- Yes, I know, Intuition has a buffer for all the messages that it wants
- to send me, but when you have a humungous amount of messages this buffer
- quite easily overflows.
-
- I also want to use more than one (two, three..) processes for other things.
- It would be nice to be able to edit one text while you process another :-)
-
-
- --
- Henrik Harmsen Internet: d9hh@dtek.chalmers.se
- Chalmers University of Technology, Sweden.
- "I haven't lost my mind -- it's backed up on tape somewhere."
-