由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Simp question on thread synchronization
相关主题
Follow up Re: Simp question onsynchronization 锁住了什么?
如何让两个socket并行执行thread新手问个multi-threading关于synchronized和volatile的问题
a fun coding question怎么练习java multithread
multi-threading guru们 (转载)Re: Simp question on thread synchronizat
CC150 16.6答案是不是有问题? (转载)Talk a little more about How to lock a file
关于java的疑惑 (转载)请教一个多线程lock机制的问题
发现 synchronized 的一个问题怎么synchronize时间捏
synchronization for countersHashMap cache
相关话题的讨论汇总
话题: tracktime话题: simp话题: thread话题: question
进入Java版参与讨论
1 (共1页)
g****n
发帖数: 18
1
Hello everyone,
I have a question about Java thread sync. Following is part of the code that I
am having trouble with,
while (listening)
{
System.out.println("Waiting for a client...");
new MultiThread(group, serverSocket.accept(), h).start();
trackTime = h.getTime();
System.out.println("Track time " + trackTime);
System.out.println("Load: " + group.activeCount());
}
In it, h is a structure with public function getTime(). The MultiThread will
m
c****e
发帖数: 90
2
没看明白,那个time到底是嘛玩意儿?
你要记录什么?

I
instance

【在 g****n 的大作中提到】
: Hello everyone,
: I have a question about Java thread sync. Following is part of the code that I
: am having trouble with,
: while (listening)
: {
: System.out.println("Waiting for a client...");
: new MultiThread(group, serverSocket.accept(), h).start();
: trackTime = h.getTime();
: System.out.println("Track time " + trackTime);
: System.out.println("Load: " + group.activeCount());

g*****n
发帖数: 37
3
MultiServerThread.join().

【在 g****n 的大作中提到】
: Hello everyone,
: I have a question about Java thread sync. Following is part of the code that I
: am having trouble with,
: while (listening)
: {
: System.out.println("Waiting for a client...");
: new MultiThread(group, serverSocket.accept(), h).start();
: trackTime = h.getTime();
: System.out.println("Track time " + trackTime);
: System.out.println("Load: " + group.activeCount());

1 (共1页)
进入Java版参与讨论
相关主题
HashMap cacheCC150 16.6答案是不是有问题? (转载)
Apply lock on a class.关于java的疑惑 (转载)
问一个基础问题发现 synchronized 的一个问题
请教:performance issuesynchronization for counters
Follow up Re: Simp question onsynchronization 锁住了什么?
如何让两个socket并行执行thread新手问个multi-threading关于synchronized和volatile的问题
a fun coding question怎么练习java multithread
multi-threading guru们 (转载)Re: Simp question on thread synchronizat
相关话题的讨论汇总
话题: tracktime话题: simp话题: thread话题: question