I want to share data between two threads. How can we do that?
Give some simple program.
I want to share data between two threads. How can we do that?
Give some simple program.
perldoc perlthrtut
contains some excellent examples on how to use threads, shared variables, semaphores and queues.