Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actually concurrent fibers #259

Open
marekmaskarinec opened this issue Dec 19, 2022 · 1 comment
Open

actually concurrent fibers #259

marekmaskarinec opened this issue Dec 19, 2022 · 1 comment
Labels
enhancement New feature or request question How to use the language Umka 2

Comments

@marekmaskarinec
Copy link
Contributor

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?

@vtereshkov vtereshkov added enhancement New feature or request question How to use the language labels Dec 19, 2022
@vtereshkov
Copy link
Owner

vtereshkov commented Dec 19, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question How to use the language Umka 2
Projects
None yet
Development

No branches or pull requests

2 participants