I have a file onto which I have written some data. Say 8 bytes of data
Now using my python script, I want to read the first four bytes using one thread and the next 4 bytes using another thread while the first thread is still running or suspended.
How can I do this using python? i.e
1) Read first 4 bytes using thread1 from file1
2) while thread1 running or suspended, read next 4 bytes from file1 using thread2
I have a file onto which I have written some data. Say 8 bytes
Share
Run two threads and open and read file separately in both threads, you can use
seekto jump to specific positions