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

[REBOL] Re: Multi-threading?

From: nitsch-lists:netcologne at: 3-Jul-2002 1:29

Am Dienstag, 2. Juli 2002 07:32 schrieb Matthew Kim:
> Hey Greg, thanks for the reply. > > <<Maarten Koopmans has written a lightweight threading engine for use in > Rugby, which does cooperative multithreading, and I have built something > similar myself.>> > > I'll take a look into Rugby. > > <<< 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?>> > > You're right in that for my personal mail, I shouldn't have an issue. > However, what if such a solution were to be used for corporation or even > as a service to the mass market were potentially hundreds of emails are > being sent per minute? >
Thats a problem of asynchronous io, not of multi-threading. Proof: thready Java now adds asynchronous io for performance. One thread/connection is heavy overhead. Rebol can currently do it partly. the basics are there, but the protocols have to be rewritten to use it. for selfmade protocols like rugby it works. AFAIK Holger is working on it.
> Matt > > -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]] On Behalf > Of Gregg Irwin > Sent: Sunday, June 30, 2002 3:11 PM > To: [rebol-list--rebol--com] > Subject: [REBOL] Re: Multi-threading? > > Hi Matt, > > << Is it possible for REBOL to multi-thread? If that's what its called. > Is there an example on the rebol site? >> > > Since multi-threading often causes more problems than it solves, the > real question is: Do you *need* it? > > 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