[Oberon] What do you use for threads/coroutines?

noreply at z505.com noreply at z505.com
Sun May 14 22:57:55 CEST 2017


This probably has been discussed somewhere before..

What do componentpascal (and Oberon) developers use to prevent an 
application from hanging?

In delphi one starts a new thread...
C++ is similar..

Does Componentpascal/Oberon have some module that covers this? Calls 
windows threads with a callback function?

Does it have some coroutine module?

At what point does one have to start modifying the language itself if 
writing a module won't cut it?

Sorry if this has been answered before. A quick search on google 
provided not much.

A common case for an application hanging might be if you have a progress 
bar and you do not put it into a separate thread, or a status 
memo/editarea/editbox that is written to constantly, but you want to 
continue the application while the memo messages are written.

And when not using threads, Delphi has something called 
Application.ProcessMessages which sort of fakes making a thread without 
being an actual thread, and let's the application respond even though 
normally it would hang. Oberon/ComponentPascal has something similar?


More information about the Oberon mailing list