Home > other >  How to implement or have a better way?
How to implement or have a better way?

Time:09-28

Sensor measurement data through the program A constantly writing text B how to read real-time text data at the same time
The purpose is to realize the body feeling game

CodePudding user response:

The Text? Written to where? If you mean written to a text file, then I suggest you change a way, it is best to write to the cache, if you are to say, speaking, reading and writing in the cache, then lock when reading, when written to do a stored object pool, didn't try very hard to write when I was reading, reading can guarantee the stability of the data at once when I was reading

CodePudding user response:

Different applications, inter-process communication, or write to the data in a Shared buffer (and you use the keyboard input, the system and then capture mode)
  • Related