Answer the question
In order to leave comments, you need to log in
How to process stream in real time?
I don't even know how to phrase it. So I'll give you an example.
Let's say I decided to make a text editor with syntax highlighting. But the syntax highlighting should not work when I press some button, but in real time.
How is this done? I don't even know how to google it.
Answer the question
In order to leave comments, you need to log in
Multithreading. One thread waits for input from the keyboard, another one checks and highlights the syntax, the third one draws a clock in the corner, the fourth one in the background saves the current one to a temporary file...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question