线程的实际用途 [英] Practical uses for threads

查看:79
本文介绍了线程的实际用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在您的工作中,线程专门用于什么用途?

In your work, what specifically have you used threads for?

(请描述应用程序,以及线程如何帮助/增强应用程序.)

(Please give a description of the application and how the thread helped/enhanced the application.)

推荐答案

(不太认真的回答)我希望在任何情况下都希望使用线程,在这种情况下,我希望系统以有趣且不明显的方式跌倒它的屁股,同时仍然有合理的选择关于如何解决问题的建议.

(Less serious answer) I like to use threads in any situation where I want the system to fall on its arse in interesting and unobvious ways, while still having plausible deniability as to how I could have let the problem slip through.

或者用Rasmus Lerdorf的话说,人们不够聪明,无法编写线程安全代码".

Or, in the words of Rasmus Lerdorf, "People aren't smart enough to write thread-safe code".

这篇关于线程的实际用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆