从多个线程中调用Console.WriteLine [英] Calling Console.WriteLine from multiple threads

查看:599
本文介绍了从多个线程中调用Console.WriteLine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么从多个线程确实Console.WriteLine工作?

Why does Console.WriteLine work from multiple threads?

推荐答案

控制台类为您处理线程同步。

The console class handles the thread synchronization for you.

控制台:

使用这些流是I / O操作   同步的,这意味着多个   线程可以读取或写入,   流。

I/O operations using these streams are synchronized, which means multiple threads can read from, or write to, the streams.

这篇关于从多个线程中调用Console.WriteLine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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