由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - C# thread
相关主题
那个语言最适合做科学计算软件一些初级问题
[合集] 为什么多个线程生成的随机数是一样的?java update main UI from child thread issue (转载)
【求助】Fortran多线程执行效率问题请大家推荐c#和Java的书
如何快速学习R或Python这类开源类语言的加盟包?如何生成java 的exe文件?
Windows Thread API一个JAVA程序请教
question: C#,python,C interfacing当年据说有段时间据说全球60%程序员是visual basic的
VS里的不同类型PROJECT有什么区别啊?请问java /c++ 双修的大牛,java和c++最主要的区别是什么?c++程序员转java您认为最需要补充的知识是什么
有必要学一学MFC吗?Java工程师面试都问什么? (转载)
相关话题的讨论汇总
话题: c#话题: thread话题: program话题: java话题: when
进入Programming版参与讨论
1 (共1页)
b******y
发帖数: 139
1
When I run the following C# program and pull other windows at the same time,
painting will be messed up. But if the program is writeen in Java, such a
problem doesn't occur, so the reason is the C# thread. Anyone can help me to
fix it? Thanks.
// Calc.cs -----------------------------------------------------------------
k*k
发帖数: 508
2
不知道你到底想干吗,那个 Thread.Sleep 干吗用的?让程序 freeze 一段时间么?

time,
to

【在 b******y 的大作中提到】
: When I run the following C# program and pull other windows at the same time,
: painting will be messed up. But if the program is writeen in Java, such a
: problem doesn't occur, so the reason is the C# thread. Anyone can help me to
: fix it? Thanks.
: // Calc.cs -----------------------------------------------------------------

m*****r
发帖数: 130
3
你这个messup是完全正常的行为。那个Thread.sleep就是把当前thread,也就是GUI的
thread给停住,没办法画GUI了。你要想干别的,得弄个新的Thread。

time,
to

【在 b******y 的大作中提到】
: When I run the following C# program and pull other windows at the same time,
: painting will be messed up. But if the program is writeen in Java, such a
: problem doesn't occur, so the reason is the C# thread. Anyone can help me to
: fix it? Thanks.
: // Calc.cs -----------------------------------------------------------------

A**********e
发帖数: 3102
4
你得把 thread 定义好,从主程序启动,单独跑,给个名字, MSDN 上面有例子。你这
么干,不是把主程序给挂了么?

time,
to

【在 b******y 的大作中提到】
: When I run the following C# program and pull other windows at the same time,
: painting will be messed up. But if the program is writeen in Java, such a
: problem doesn't occur, so the reason is the C# thread. Anyone can help me to
: fix it? Thanks.
: // Calc.cs -----------------------------------------------------------------

1 (共1页)
进入Programming版参与讨论
相关主题
Java工程师面试都问什么? (转载)Windows Thread API
uber用的python作的api.不是java, phpquestion: C#,python,C interfacing
怎么练习multi-threading,平常工作都是用Java框架VS里的不同类型PROJECT有什么区别啊?
重新学习Java Thread的Field变量与Thread Local有必要学一学MFC吗?
那个语言最适合做科学计算软件一些初级问题
[合集] 为什么多个线程生成的随机数是一样的?java update main UI from child thread issue (转载)
【求助】Fortran多线程执行效率问题请大家推荐c#和Java的书
如何快速学习R或Python这类开源类语言的加盟包?如何生成java 的exe文件?
相关话题的讨论汇总
话题: c#话题: thread话题: program话题: java话题: when