由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Help needed, about pthread...
相关主题
multithread questionRe: [转载] 什么是LWP呢?Re: 如何在Linux/Unix下获取微秒级的进程时间?
A question about thread of unix[转载] how to debug multi-threaded program?
[转载] shared library一问Have anyone installed FreeBSD on your PC
Does Linux support thread?再介绍一篇文章 (转载)
[转载] ALERM CLOCKwhat is the difference between pthread and thr_ ?
[转载] Questions about thread.multithread programming
C++ new/delete not thread safe?[转载] pthread programming question.
who can tell me how many threads solaris server sunix/linux schedule problem, need high end to help.
相关话题的讨论汇总
话题: thread话题: pthread话题: threads话题: needed话题: multiple
进入Unix版参与讨论
1 (共1页)
O*****d
发帖数: 762
1
Can anyone help me with it?
In my main thread I am creating multiple threads to support multiple clients,
but only the first child-thread created by the main thread runs, all the
other following threads just don't run at all, anyone knows why?
thank you :(
btw, i am working on a multi-client game server, faint
m*******m
发帖数: 182
2

How do you tell if they are not running?

【在 O*****d 的大作中提到】
: Can anyone help me with it?
: In my main thread I am creating multiple threads to support multiple clients,
: but only the first child-thread created by the main thread runs, all the
: other following threads just don't run at all, anyone knows why?
: thank you :(
: btw, i am working on a multi-client game server, faint

f*****e
发帖数: 2
3

I guess the reason is in some Unix platform thread is not
using round-robin scheduling policy by default, and your
first thread never block to give other thread a chance to
run. Try to set scheduling policy as round-robin if it's
not. Good luck!

【在 O*****d 的大作中提到】
: Can anyone help me with it?
: In my main thread I am creating multiple threads to support multiple clients,
: but only the first child-thread created by the main thread runs, all the
: other following threads just don't run at all, anyone knows why?
: thank you :(
: btw, i am working on a multi-client game server, faint

1 (共1页)
进入Unix版参与讨论
相关主题
unix/linux schedule problem, need high end to help.[转载] ALERM CLOCK
求助:pthread_create的用法[转载] Questions about thread.
pthread_kill SIGINT SIG_DFL multithreadC++ new/delete not thread safe?
Re: what wrong with these thread program. Thanks for helpingwho can tell me how many threads solaris server s
multithread questionRe: [转载] 什么是LWP呢?Re: 如何在Linux/Unix下获取微秒级的进程时间?
A question about thread of unix[转载] how to debug multi-threaded program?
[转载] shared library一问Have anyone installed FreeBSD on your PC
Does Linux support thread?再介绍一篇文章 (转载)
相关话题的讨论汇总
话题: thread话题: pthread话题: threads话题: needed话题: multiple