2011. 12. 11. 17:02 카테고리 없음

Process, Thread

process structure
프로세스의 구조를 알아야 무엇을 공유하고 무엇을 공유하지 않는지 알 수 있다

Process?
Processes carry out tasks within the operating system. A program is a set of machine code instructions and data stored in an executable image on disk and is, as such, a passive entity; a process can be thought of as a computer program in action.

each process is represented by a task_struct data structure


State - running, waiting, zombie, Stopped
Scheduling information
Identifier - pid
Inter-Process Communication - for ipc
Links - pstree | more
Time - cpu time
File system - for VFS
Virtual memory
Context


The child is a copy of the parent. For example, the child gets a copy of the parent's data space, heap, and stack. Note that this is a copy for the child;
the parent and the child do not share these portions of memory.

The parent and the child share the text segment

Advanced Programming in the UNIX Environment
http://tldp.org/LDP/tlk/kernel/processes.html

Posted by 쵸코케키

블로그 이미지
chocokeki
쵸코케키

공지사항

Yesterday
Today
Total

달력

 « |  » 2025.1
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 올라온 글

최근에 달린 댓글

글 보관함