Fibers_threads
What I’m writing is my guess and understanding. Not the facts.. because I don’t know the facts right now. I’m investigating.
Let’s say you want to do some animation in a terminal. This would use ANSI escape codes to position the cursor and print a character. Then wait a bit and put the next character in the animation on the same position.
And you try to fork it. Suddenly you have no control over the setting of position and the printing of characters. Anything can be interrupted at any time.
You’d need the setting of position and the printing of the char to never be interrupted by another setting of position or printing of a char.
I would guess you’d have to mix forking process with fibers. A fiber can be resumed; run its course and then yield.
In my mind an array of fiber-workers could be mapped inside a process.. and it would solve my problem. I’ll get back when I know more.