由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - Is there WinThread in C#
相关主题
WebClient is not thread-safe!如何同步多个程序同时读取一个文件
.Net Thread question7 free ebooks
Quick QuestionThread.Sleep is a sign of a poorly designed program
Threading Question请问.Net相关的工作,面试是什么风格的?
easy question, but ...Re: 又开始认证了SQL 2012 (转载)
Thread suspend and resumec#怎么测试deadlock, race condition啊? (转载)
WebClient for multi-connections?这怎么实现
如何在C#环境下启动一个新的进程Code review
相关话题的讨论汇总
话题: winthread话题: c#话题: message话题: thread1话题: c++
进入DotNet版参与讨论
1 (共1页)
d*r
发帖数: 238
1
Like the WinThread in VC++ which is a thread with a message queue so tha
t other threads could throw a message into the winthread to fire an even
t in the winthread.
I read through the MSDN and feel that the I have to implement such threa
d by myself.
Any comments?
n*********g
发帖数: 75
2
don't know what is winthread in VC++.
you may check out events and delegates in C#.

【在 d*r 的大作中提到】
: Like the WinThread in VC++ which is a thread with a message queue so tha
: t other threads could throw a message into the winthread to fire an even
: t in the winthread.
: I read through the MSDN and feel that the I have to implement such threa
: d by myself.
: Any comments?

d*r
发帖数: 238
3
I have tried that. Say if object1 in thread1 and objct2 in thread2, obje
ct1 fire an event and objct2 catch the event, the first problem is that
the event is catched in thread1 instead of thread2. The second problem i
s that the thread1 is then blocked until the event catching is finished.


【在 n*********g 的大作中提到】
: don't know what is winthread in VC++.
: you may check out events and delegates in C#.

x*******z
发帖数: 27
4
没有系统thread的封装,只有到System.Diagnostics.Process一级

【在 d*r 的大作中提到】
: Like the WinThread in VC++ which is a thread with a message queue so tha
: t other threads could throw a message into the winthread to fire an even
: t in the winthread.
: I read through the MSDN and feel that the I have to implement such threa
: d by myself.
: Any comments?

d*r
发帖数: 238
5

i have figured it out.
thank you.

【在 x*******z 的大作中提到】
: 没有系统thread的封装,只有到System.Diagnostics.Process一级
x*******z
发帖数: 27
6
Could you show us how you wrap for system threads?

【在 d*r 的大作中提到】
:
: i have figured it out.
: thank you.

d*r
发帖数: 238
7
As I said in my first post, what I need is a thread with a build-in message
queue. And that's what I did. My first post was trying to find if there was
such class in System while I didn't know. And after some research, I think
the answer is either create such class or use the system message queue.

【在 x*******z 的大作中提到】
: Could you show us how you wrap for system threads?
x*******z
发帖数: 27
8
I see, thanks

【在 d*r 的大作中提到】
: As I said in my first post, what I need is a thread with a build-in message
: queue. And that's what I did. My first post was trying to find if there was
: such class in System while I didn't know. And after some research, I think
: the answer is either create such class or use the system message queue.

1 (共1页)
进入DotNet版参与讨论
相关主题
Code revieweasy question, but ...
有用过spring.net 和 Nhibernate的大牛吗?Thread suspend and resume
paint()呀,repaint()呀WebClient for multi-connections?
请问如果用C++实现Thread Safe Queue如何在C#环境下启动一个新的进程
WebClient is not thread-safe!如何同步多个程序同时读取一个文件
.Net Thread question7 free ebooks
Quick QuestionThread.Sleep is a sign of a poorly designed program
Threading Question请问.Net相关的工作,面试是什么风格的?
相关话题的讨论汇总
话题: winthread话题: c#话题: message话题: thread1话题: c++