umka-lang icon indicating copy to clipboard operation
umka-lang copied to clipboard

actually concurrent fibers

Open marekmaskarinec opened this issue 2 years ago • 1 comments

In proped, I need to open a file dialog and keep redrawing the host program. As far as I know this isn't possible with fibers. Would it be possible to add a new function that would run the fiber in a new thread on OSes that support it?

marekmaskarinec avatar Dec 19 '22 08:12 marekmaskarinec

@marekmaskarinec Do you mean that the file dialog blocks the main application when run in the same OS thread? If so, then you cannot process them simultaneously with Umka fibers.

Introducing "true" OS threads in Umka would be very attractive for many reasons, including taking advantage of the CPU architectures. However, it would require much more synchronization efforts than the current "cooperative" multitasking needs.

vtereshkov avatar Dec 19 '22 09:12 vtereshkov