收藏 分享(赏)

1 Task-Process-Thread-Lighten_Thread.ppt

上传人:wspkg9802 文档编号:7293048 上传时间:2019-05-13 格式:PPT 页数:9 大小:79KB
下载 相关 举报
1 Task-Process-Thread-Lighten_Thread.ppt_第1页
第1页 / 共9页
1 Task-Process-Thread-Lighten_Thread.ppt_第2页
第2页 / 共9页
1 Task-Process-Thread-Lighten_Thread.ppt_第3页
第3页 / 共9页
1 Task-Process-Thread-Lighten_Thread.ppt_第4页
第4页 / 共9页
1 Task-Process-Thread-Lighten_Thread.ppt_第5页
第5页 / 共9页
点击查看更多>>
资源描述

1、Task-Process-Thread-Lightweight_process,Michael Li,Process/Task(in Unix),Processes the executing program code (often called the text section in Unix). a set of resources open files and pending signals internal kernel data processor state an address space one or more threads of execution a data secti

2、on containing global variables,Thread(in Unix),Threads are the objects of activity within the process. Each thread includes a unique program counter(PC) process stack(SP) set of processor registers() The kernel schedules individual threads, not processes. Traditional Unix systems, each process consi

3、sts of one thread. Modern systems, however, multithreaded programs those that consist of more than one thread are common.,Thread(in Linux),Linux has a unique implementation of threads: It does not differentiate between threads and processes. To Linux, a thread is just a special kind of process.,kern

4、el threads standard processes exist solely in kernel-space. Difference between kernel threads and normal processes kernel threads do not have an address space (in fact, their mm pointer is NULL). They operate only in kernel-space and do not context switch into user-space. Kernel threads are, however

5、, schedulable and preemptable as normal processes.,Resoures can be shared by processes,open files and pending signals, address space, ?,Resources can be shared by threads,open files and pending signals, address space, ?,POSIX-compliant pthread libraries that use Linuxs lightweight processes,LinuxThreadsIBMs Next Generation Posix Threading Package (NGPT),task_struct,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报