Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: threading? (concurrent execution)
Pages: [1] Print
Author Topic: threading? (concurrent execution)  (Read 734 times)
-X-
Guest


Email
threading? (concurrent execution)
« on: February 13, 2006, 06:57:52 PM »

Does REBOL support concurrent execution ("threading")?, or how might such things apply in REBOL code?
Logged
Gregg
Newbie
*
Offline Offline

Posts: 26


View Profile WWW
Re: threading? (concurrent execution)
« Reply #1 on: April 24, 2006, 07:40:07 PM »

REBOL does not have any native multithreading capability, but you can do cooperative threading on your own if you need to. Rugby has a built-in engine for that, or you can roll your own pretty easily. It does take a slightly different development model though, just so you're aware (in case you're not already).
Logged
Carl
Global Moderator
Newbie
*
Offline Offline

Posts: 18

Carl Sassenrath, designer of the REBOL Language.


View Profile WWW
Re: threading? (concurrent execution)
« Reply #2 on: April 24, 2006, 08:15:14 PM »

Yes, the current REBOL is single-threaded, but you can fire up as many REBOL processes as you want, just use the launch function to do that. (For example, every app in IOS is launched in this way.) You can use ports to communicate and sync between the processes.

In addition, as Gregg mentioned, REBOL has an internal method of handling wait events, called wait lists.  This is how ports and GUI events get processed while your main loop is in the WAIT function.

The plan for REBOL 3.0 is to add lightweight tasks. These are similar to threads, but with a less implicit sharing model (no shared variables by default).
Logged

-Carl, the REBOL guy.
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: threading? (concurrent execution)
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 19, 2008, 07:27:07 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2187 Posts in 576 Topics by 1615 Members
Latest Member: Uncellhoolf

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc