Linux Flashcards
Linux process
Defined via struct task_struct
These structs are held in a circular doubly linked list
What are the two interfaces by which a process can execute in kernel space
System call
Exception handlers
process creation
Two phased …fork followed by exec
Copy on write mechanism…on fork only parents page tables are duplicated and create a process descriptir
Difference between process and thread
Linux doesn’t have differentiation like windows and solaris
Threads are process that shared resources
How to create thread
Clone(vm|fs|files|sighand,0)
How to create a process
Clone(sighand,0)
System calls
Identified by a number
Users invoke using software interrupt or expection. On x86 it is interrupt no 128
System call number is given in eax register
To pass parameters registers ebx ecx edx esi edi are used
Return value in eax register