CS Electrical And Electronics
@cselectricalandelectronics

Signal Handling Concept in Linux System Programming

All QuestionsCategory: Operating SystemSignal Handling Concept in Linux System Programming
Anonymous asked 2 years ago
1 Answers
Anonymous answered 2 years ago
  • Signals overview
  • Sender process, target process
  • Signal pending bits (pending field) in process desriptor/PCB
  • Signal maks bit (mask field) in process desriptor/PCB
  • Signal handler table (per process)
  • Signals involved in common actions
    • Key strokes : Ctrl + C, Ctrl + \, Ctrl + Z
    • Child process termination
    • Resuming suspended process
    • Floating point exception
    • Segmentation fault
  • Running a process in background with & suffix
  • Default signal handler, their behavior
  • Register customer handlers
  • Non maskable signals – SIGKILL & SIGSTOP
  • Do custom handlers applicable for non maskable signals?
  • Commands for generating signals
  • Commands for job control – fg, bg, jobs
  • Commands for sending signals – kill, killall, pkill
  • APIs for generating & handling signals