C#中的线程 - 文章(免费) [英] Threading in C# - Article (free)
问题描述
我写了一篇关于C#中线程的大量文档:
http://www.albahari.com/threading
它起初是我正在写的一本书中的一章,但结尾了/>
超出了本书!因此,我将它作为一个单独的项目并行保存在
中。
欢迎任何反馈。
我对关于Wait and Pulse
部分的评论特别感兴趣。我正在提出一种设计模式,使Wait和Pulse简单地用作AutoResetEvent(好吧,几乎!)
另外,我'我认为,在同步环境中相当努力,相当于
!但是,如果你能说服我,那么问题就是掉头了。不过,它必须是一个很好的论据!
谢谢,
Joe
I''ve written an extensive document on threading in C#:
http://www.albahari.com/threading
It started out as a chapter in a book that I''m writing, but ended up
outgrowing the book! So I''m making it free and maintaining it in
parallel as a separate project.
Any feedback would be welcome.
I''m particularly interested in comments in regard the Wait and Pulse
section. I''m proposing a design pattern that makes Wait and Pulse as
simple to use as an AutoResetEvent (well, almost!)
Also, I''ve come down rather hard on synchronization contexts, I think,
fairly! But if you can convince me otherwise, a u-turn is not out of
the question. It has to be a good argument, though!
Thanks,
Joe
推荐答案
检查电子邮件,我私下发送了几个想法
Check email, I''ve send several ideas privately
我写了一篇关于C#中线程的大量文档:
http://www.albahari.com/threading
<它起初是我正在写的一本书中的一章,但最终还是超出了这本书!所以我将它作为一个单独的项目自由地保持平行。
欢迎任何反馈。
我特别感兴趣在评论等待和脉冲
部分。我正在提出一种设计模式,使Wait和Pulse简单易用作AutoResetEvent(好吧,差不多!)
另外,我在同步上相当努力我认为,上下文相当公平!但是,如果你能说服我,那么掉头也不是问题的答案。不过,它必须是一个很好的论据!
I''ve written an extensive document on threading in C#:
http://www.albahari.com/threading
It started out as a chapter in a book that I''m writing, but ended up
outgrowing the book! So I''m making it free and maintaining it in
parallel as a separate project.
Any feedback would be welcome.
I''m particularly interested in comments in regard the Wait and Pulse
section. I''m proposing a design pattern that makes Wait and Pulse as
simple to use as an AutoResetEvent (well, almost!)
Also, I''ve come down rather hard on synchronization contexts, I think,
fairly! But if you can convince me otherwise, a u-turn is not out of
the question. It has to be a good argument, though!
-
WBR,
Michael Nemtsev ::博客: http://spaces.msn.com/laflour
有时一个人仍忠于某一事业,只因为它的反对者不会因为b $ b不再是平淡无奇的。 (c)Friedrich Nietzsche
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
很棒的文章Joe。我已将它添加到我收藏的大量收藏夹
中,并计划指导许多人寻求帮助。这是很好的布局,使用
不超过最少的代码示例(这有助于不混淆
问题),并且写得很好。
荣誉!
-
HTH,
凯文斯宾塞
微软MVP
专业Numbskull
努力工作是一种药物
有没有安慰剂。
< jo ************ @ gmail.com>在消息中写道
news:11 ********************** @ i40g2000cwc.googlegr oups.com ...
Awesome article Joe. I have added it to my extensive collection of favorites
and plan to direct many people to it for help. It is nicely-layed-out, uses
no more than a minimum of code for examples (which aids in not confusing the
issue), and well-written.
Kudos!
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
<jo************@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
我写了一篇关于C#中线程的大量文档:
http://www.albahari.com/threading
它起初是我正在写的一本书的一章,但最终还是长大了这本书!所以我将它作为一个单独的项目自由地保持平行。
欢迎任何反馈。
我特别感兴趣在评论等待和脉冲
部分。我正在提出一种设计模式,使Wait和Pulse简单易用作AutoResetEvent(好吧,差不多!)
另外,我在同步上相当努力我认为,上下文相当公平!但是,如果你能说服我,那么掉头也不是问题的答案。不过,它必须是一个很好的论据!
谢谢,
Joe
I''ve written an extensive document on threading in C#:
http://www.albahari.com/threading
It started out as a chapter in a book that I''m writing, but ended up
outgrowing the book! So I''m making it free and maintaining it in
parallel as a separate project.
Any feedback would be welcome.
I''m particularly interested in comments in regard the Wait and Pulse
section. I''m proposing a design pattern that makes Wait and Pulse as
simple to use as an AutoResetEvent (well, almost!)
Also, I''ve come down rather hard on synchronization contexts, I think,
fairly! But if you can convince me otherwise, a u-turn is not out of
the question. It has to be a good argument, though!
Thanks,
Joe
Joe,
那是一篇很棒的文章。我没有机会在
详细信息中进行分析,但总体而言我喜欢布局并且写得很好。
你至少可能在高级部分提到Thread.BeginThreadAffinity和
Thread.BeginCriticalRegion。我想看看关于这两种方法的质量讨论。我不认为我们曾经在这个论坛上讨论过这些问题。
Brian
jo ************ @ gmail.com 写道:
我在C#中写了一篇关于线程的大量文档:
http ://www.albahari.com/threading
它起初是我正在写的一本书中的一章,但最终还是超出了本书!所以我将它作为一个单独的项目自由地保持平行。
欢迎任何反馈。
我特别感兴趣在评论等待和脉冲
部分。我正在提出一种设计模式,使Wait和Pulse简单易用作AutoResetEvent(好吧,差不多!)
另外,我在同步上相当努力我认为,上下文相当公平!但是,如果你能说服我,那么掉头也不是问题的答案。不过,它必须是一个很好的论据!
谢谢,
Joe
I''ve written an extensive document on threading in C#:
http://www.albahari.com/threading
It started out as a chapter in a book that I''m writing, but ended up
outgrowing the book! So I''m making it free and maintaining it in
parallel as a separate project.
Any feedback would be welcome.
I''m particularly interested in comments in regard the Wait and Pulse
section. I''m proposing a design pattern that makes Wait and Pulse as
simple to use as an AutoResetEvent (well, almost!)
Also, I''ve come down rather hard on synchronization contexts, I think,
fairly! But if you can convince me otherwise, a u-turn is not out of
the question. It has to be a good argument, though!
Thanks,
Joe
这篇关于C#中的线程 - 文章(免费)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!