Linux进程控制1

Linux进程控制1

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: www.chinaeda.cn Linux 进进进进 www.chinaeda.cn 1 进进进进进进 1.1 进进 进进进 program 进进进进进进进进进进进进进进进进进 1.2 进进进进进 ID 进进进进进进进进进进进进 (process) 进进进进进进进进进进进进进进进进进进进进进进进进进进 进进进进进进进进进进进 进进 linux 进进进进进进进进进进进进进进进进进进进进进 ID 进 process ID 进进 进进 ID 进进进进进进进进 www.chinaeda.cn 1.3 linux 进进进进进进 Linux 进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进 linux 进进进进进 3 进进进进进进“进进进”进“进进进”进“进进进”进 进进进 进进进 进进进 www.chinaeda.cn “ 进进进”进进进进进进进进进进进进进进进进进进进进进 malloc 进进进进进进进进进 “ 进进进”进进进进进进进 “ 进进进”进进进进进进进进进进进进进进进进进进进进进进进进进进进 www.chinaeda.cn 1.3 init 进进 进进 ID 进 1 进进进 init 进进进进进进进进进进进进进进进进进 init 进进进进进进进进 进进进进进进进进进进进 ( 进进进进进进进进进进进进进进进进进进进 ) 进进进进进进进进进进进进进进 www.chinaeda.cn 1.4 进进进进进进 #include <sys/types.h> #include <unistd.h> pid_t getpid(void); 进进进进进进进进进进 I D pid_t getppid(void); 进进进进进进进进进进进 I D uid_t getuid(void); 进进进进进进进进进进进进 I D uid_t geteuid(void); 进进进进进进进进进进进进 I D gid_t getgid(void); 进进进进进进进进进进进 I D gid_t getegid(void); 进进进进进进进进进进进 I D www.chinaeda.cn 1.5 fork 进进 #include <sys/types.h> #include <unistd.h> pid_t fork(void); 进进进进进进进进 进进进进进进进进进 I D 进进进进-1 www.chinaeda.cn 1.6 进进进进 进 fork 进进进进进进进进进进进进进 child process 进进 进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进 进进进进进进进进进进进进进进进进进 ID 进 进进进进进进 f o r k 进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进 www.chinaeda.cn 1.6 进进进进 进进 fork 进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进 进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进进 进进进进进进进进进进进进进进进进进进进进 www.chinaeda.cn 进进进进进进进进进进进进 fork 进进进进进 进进 I D 进进进进进进进 I D 进 进进进进 t m s _ u t i m e , t m s _ s t i m e , t m s _ c u t i m e 进进 t m s _ u s t i m e...
View Full Document

This note was uploaded on 11/23/2011 for the course CS Linux taught by Professor Linfang during the Summer '06 term at Fudan University.

Page1 / 37

Linux进程控制1

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online