开发者

How can I share data between threads?

开发者 https://www.devze.com 2023-01-04 12:49 出处:网络
I w开发者_如何学编程ant 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,

I w开发者_如何学编程ant 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.


Use threads::shared. See perldoc.

0

精彩评论

暂无评论...
验证码 换一张
取 消