What you're referring to is called thread sychronization (sometimes, or thread locking, among other things) and locks for variables, atomic writes etc. . If your program is multithreaded then it is basically built to run on a multicore already as the threads running on one processor can still get out of sync quite easily. Threads getting out of sync isn't a really bad problem unless they have to talk to each other a lot, whether directly or through memory, in which case t
13 Replies
27,137 Views