Featured post
unix - What happens inside machine when i send a signal -
i mean, have request operating system, kill sig_number pid, happens next. actions taken operating system , on.
thanks much
depends on os of course - assuming have sufficient privileges deliver signal process concerned - os alter process state proc. concerned within kernel. result in "life cycle" state change process - i.e. terminated, terminating, dead, suspended .. etc.
the actual call kernel (depending on os) via system call or maybe 'ioctl' call via appropriate device.
when it's process's turn cpu time proc scheduler take process state account determine next. deliberately brief here quite involved.
i'd suggest looking @ sample source - @ linux distro or opensolaris maybe (although that's quite complicated).
example here - warning complicated. opensolaris signal handling in kernel
- Get link
- X
- Other Apps
Comments
Post a Comment