📄 00000004.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: reden (鱼 ~ 梦娜丽莎的微笑 流星的故事), 信区: Linux <BR>标 题: Re: 关于线程 (转载) <BR>发信站: BBS 水木清华站 (Sat Dec 12 01:56:56 1998) <BR> <BR>【 以下文字转载自 Unix 讨论区 】 <BR>【 原文由 rainland 所发表 】 <BR>【 在 hmv (任我行) 的大作中提到: 】 <BR>∶<I> UNIX中线程的概念是怎样的呢? </I><BR>∶<I> 和WINDOWS NT中一样吗? </I><BR>under unix, there are two kinds of thread: <BR>kernel thread and user thread, posix thread <BR>lib refers to user thread, and they map user <BR>threads to kernel threads. <BR>Serveral kernel threads usually serve a lot of <BR>user threads, that is because too many kernel <BR>thread will choke OS. <BR> <BR>under win32, no user threads, <BR>that's to say, user thread equal to <BR>kernel thread. <BR> <BR>∶<I> 用什么函数创建呢? </I><BR>under win32, the basic way is to <BR>call CreateThread. <BR> <BR>under unix, it is up to the <BR>thread lib that you use. <BR>For example, in posix thread lib, <BR>you could call pthread_create. <BR>In the SUN thread lib, <BR>things are different, but I am <BR>not quite sure about the related <BR>call. <BR> <BR> <BR>-- <BR> <BR> Roses are red / / / / / / / / / / / / / / / / / <BR> Violets are blue / / / / Farmland in rain/ / / / / <BR> To you, ... , I will always be true. / / / / / / / / / / / / / / / / / <BR> <BR>※ 修改:·rainland 於 Dec 11 13:56:22 修改本文·[FROM: dell.net.tsingh] <BR>※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: dell.net.tsingh] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -