Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Fundamentals of Linux

You're reading from   Fundamentals of Linux Explore the essentials of the Linux command line

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781789530957
Length 234 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Oliver Pelz Oliver Pelz
Author Profile Icon Oliver Pelz
Oliver Pelz
Oliver Pelz Oliver Pelz
Author Profile Icon Oliver Pelz
Oliver Pelz
Arrow right icon
View More author details
Toc

Signals

Signals are used for communication between processes. If you start a new process, how can you communicate with it through your shell or any other program or process while it is running? Also, how does the parent process know when the child process is finishing? For example, how does your Bash know when the ls -al command is terminating? In Linux, this kind of notification and interprocess communication is done using signals. In Linux, if a process starts another process, the parent process is put to sleep until the child process command has finished, which will trigger a special signal and this will wake up the parent process. The parent process is put to sleep so that no active CPU time is needed for waiting. A popular signal is the seek or interrupt signal, which will be sent to the running process each time we press Ctrl + C in an active program. This will interrupt...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime