Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Multi-threading?

From: greggirwin:mindspring at: 30-Jun-2002 13:11

Hi Matt, << Is it possible for REBOL to multi-thread? If that's what its called. Is there an example on the rebol site? >> REBOL scripts can't be multi-threaded, in the sense of pre-emptive multi-threading like many modern OSs. Maarten Koopmans has written a lightweight threading engine for use in Rugby, which does cooperative multithreading, and I have built something similar myself. Since multi-threading often causes more problems than it solves, the real question is: Do you *need* it? << If a rebol script checked my inbox for messages and replied to those that were on my "friends" list it would read and reply one at a time. Is it possible to concurrently check multiple emails? >> In this example, given that the volume will probably be very low, what does it gain you? I.e. have you tried a regular version and found it to be inadequate in some way? Another approach, of course, is that you might build a larger system out of multiple scripts, each of which would be handled by the OS but could communicate with the others via some IPC mechanism. --Gregg