开发者

How can I share data between threads?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜