Thread run function, the code inside too much, I want to separate out written several functions to call, so the code looks neat number, to ask you, do thread safe?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
LS mean the code should be re-packaged, easy maintenance check after debugging, right?
If the value is thread-safe code with your package related to global or static variable has changed, if it is determined the package before access these variables in a multi-threaded value is constant, then the thread-safe; otherwise your deal on undermine the security thread.
Reply:
You can do it.
Think of your own safety we need to do more work.
Reply:
Can be separated, but also in the thread object, the method is to run parallel relationship and go.
Reply:
You have to pay attention to the use of locks. . . . . . This will result in an error
No comments:
Post a Comment