社区
新手乐园
帖子详情
What is process and what is thread ?
vitingman
2005-03-01 03:14:44
他们之间在使用上有什么差别?
Thread之间可以实现同步和互斥吧,是如何实现的呢?
我在win32下面,提供文章也可以。
我倒是知道有CreateMutex SetEvent什么的,但是不知道怎么用,谢谢咯
...全文
216
15
打赏
收藏
What is process and what is thread ?
他们之间在使用上有什么差别? Thread之间可以实现同步和互斥吧,是如何实现的呢? 我在win32下面,提供文章也可以。 我倒是知道有CreateMutex SetEvent什么的,但是不知道怎么用,谢谢咯
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
15 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
nytony
2005-04-13
打赏
举报
回复
gz
llmsn
2005-03-06
打赏
举报
回复
这是操作系统中的知识吧,进程是由几个线程组成的,分得再小的话还有纤程XP中.
hcj2002
2005-03-05
打赏
举报
回复
进程就是程序在其对应的数据集上运行一次的过程。
进程是进程的组成部分。
Flood1984
2005-03-03
打赏
举报
回复
线程的互斥一般使用PV操作来解决,
比如说
解决A,B两线程的互斥问题
先定义一个全局变量m=1;
然后分别在A和B的格式为:
if(m)
{
m=0;
//执行自己的语句
m=1;
}
这样就解决了AB的互斥问题
zhousqy
2005-03-03
打赏
举报
回复
up
oyljerry
2005-03-03
打赏
举报
回复
进程中可以含有多个线程
Wolf0403
2005-03-02
打赏
举报
回复
goodluckyxl:除了 named mutex 之外,其它的同步原语(诸如 Event 之类)都是给 Threads 设计的吧?
gnixemos
2005-03-02
打赏
举报
回复
推荐2本书
windows核心编程 微软出版社
win32多线程编程 侯捷翻译
yjh1982
2005-03-02
打赏
举报
回复
找本win32 编程的书看就得
dongpy
2005-03-02
打赏
举报
回复
系统分配资源给进程,分配CPU时间片给线程。
进程可以包含一个或多个线程,它们共享着进程的资源。
系统按照某种算法来调度所有线程,使它们微观上串行、宏观上并行运行。
建议楼主看看操作系统方面的书。
sharkhuang
2005-03-02
打赏
举报
回复
其实主要概念就是线程共享进程的资源
怎么用msdn。
goodluckyxl
2005-03-01
打赏
举报
回复
线程称为羽量及进程,只拥有自身必可少的一点资源
一个进程可以多个线程
Thread之间可以实现同步和互斥吧,是如何实现的呢?
//可以利用 锁 CRITICALSECTION
寻开心
2005-03-01
打赏
举报
回复
简单的说:
进程是独立的运行程序,线程是包含在进程当中的并行的子过程
一个进程包含多个线程
在google上搜索“线程 通讯”就可以找到大量的相关文章
候杰也有一本单独的书描述这个 win32多线程编程
winstonch
2005-03-01
打赏
举报
回复
楼上说得对,看看操作系统书,会讲得更系统
sanhill
2005-03-01
打赏
举报
回复
多看看MSDN帮助文档,它将的很清楚!
你用英文写标题,应该能看懂MSDN的文章!
微服务系列第七十一季-Spring入门
1-Why Spring 2-What can Spring do 3、What You Will Build 4、What You Need 5、How to complete this guide 6、Starting with Spring Initialize 7、Create a Resource Representation Class 8、Create a ...
What is the difference between a
thread
and a
process
?
What is the difference between a
thread
and a
process
? 分类: OS 2011-01-21 11:28 62人阅读 评论(0) 收藏 举报
Process
es vs
Thread
s This is a ve
What is the difference between a
process
and a
thread
?
The typical difference is that
thread
s (of the same
process
) run in a shared memory space, while
process
es run in separate memory spaces.
What's the difference between a
thread
and a
process
?
What’s the difference between a
thread
and a
process
?
Process
Each
process
provides the resources needed to execute a program. A
process
has a virtual address space, executable code, open handle
what is the difference between
process
es and
thread
s
this is the classic interview question,well, in addition ,to begin with it ,let us discuss what is difference for program ,
process
,
thread
? program,it is the certain amount of the static codes ,it
新手乐园
33,311
社区成员
41,784
社区内容
发帖
与我相关
我的任务
新手乐园
C/C++ 新手乐园
复制链接
扫一扫
分享
社区描述
C/C++ 新手乐园
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章