Process
- The Linux kernel 10. Processes
- Session
- Process Group
- Orphaned Process Groups
- process
- Zombie
- struct task_struct/Process Descriptor
- thread_info/kernel mode stack
- process/task state
- delay/busy waiting
- fork_init
- concurrency
- SMP
- Process Group
- A session can have a controlling tty.
- At most one process group in a session can be a foreground process group.
- Wait Queue
- typedef struct __wait_queue_head wait_queue_head_t(each wait queue has a head)
- spinlock_t lock
- Because wait queues can also be modified in interrupts, a spinlock named lock must be acquired before the queue is manipulated.
- struct list_head task_list
- a doubly linked list used to implement what it’s best at queues
- Declaring Wait Queue Head
- DECLARE_WAIT_QUEUE_HEAD
- init_waitqueue_head
- spinlock_t lock
- Executable Files
- Core Dump
- Core dump is an operation of saving current state of a process and its memory to a file when the program crashes.
- The resulting file, usually called core can be used by a programmer to find out what happend.
- Usually a debugger is used in the process.
page revision: 133, last edited: 19 Apr 2017 08:23