Home > Back-end >  The deadlock problem C multiple threads
The deadlock problem C multiple threads

Time:04-26

1. Defined in a class a mutex, used in the value of the variable assignment and file read and write, in a thread of them into the class, the mutex can work?
2. Variable values and file read can need not lock?

CodePudding user response:

1, must play a role,
2, variable values don't lock problem is not big, but the file unlocked I'm afraid I can't read, the current position pointer for reading and writing change,
  • Related