Original Post
I'm starting to use threads in my program, so I discover the joys of synchronization and the like. However, I could'nt find an answer to a rather basic question : can you call a procedure that's not in a thread, from 2 simultaneously running threads, or do you have to duplicate the code to make sure that the 2 threads won't collide ? I assumed the second proposal was right, so I'm instantiating objects in each of my threads so that each calls its own methods, but I'm not sure this is not a waste of code.