SlideShare a Scribd company logo
1 of 2
Download to read offline
Describe how to use sanction such that a process can send a payload with the signal that can be
retrieved by the receiving process.
Solution
The kernel maintains two bit-vectors for every process
• Every type of signal has a specific bit in this bit-vector
• pending bit-vector records what signals have yet to be
delivered to the process
• Note: if multiple instances of a given signal occur before a process
receives the signal, it will see only one instance of the signal
• Signals indicate one or more events of given type have occurred
• blocked bit-vector records what signals are currently not
allowed to be delivered to the process
• Can have a signal that is both blocked and pending
• When the signal is unblocked, it will be delivered to the process
• When a signal is delivered to a process, that type of signal
is automatically blocked for the process
• Prevents a given signal handler from interrupting itself
• One kind of signal can interrupt another kind of signa
A process isn’t always running when a signal is sent to it
• e.g. kill() syscall is invoked by another process
• e.g. a child process dies, causing SIGCHLD to be sent to parent,
but a higher priority process currently preempts the parent
• Kernels make a distinction between generating a signal
and delivering the signal
Already mentioned pending / blocked signal bit-vectors
• At a coarse-grain level of detail, records which signals need to be
delivered, and which signals are currently blocked from delivery
• Each process also has a linked list of pending signals
• siginfo_t struct records relevant details of the pending signal
• Each process also has an array of “signal action” structs
• Specifies how to handle each kind of signal
• e.g. “default action,” “ignore,”
or a user-space handler
• (Flags also record other
options for handling signals
When a signal is sent to a process:
• The kernel invokes a specific function to update the process’ signal
structures, perform scheduling tasks, etc.
• e.g. Linux 2.6 has specific_send_sig_info() kernel function
• If the process already has a pending signal of that type,
the new signal is ignored
• For real-time signals, this test is skipped
• Every occurrence of a real-time signal is delivered
• If the process is ignoring
the signal, nothing is done
• No structures are updated
• No scheduling tasks oc

More Related Content

Similar to Describe how to use sanction such that a process can send a payload w.pdf

AOS Chapter 6 for internal.docx
AOS Chapter 6 for internal.docxAOS Chapter 6 for internal.docx
AOS Chapter 6 for internal.docx
KomlikaTaru
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
chnrketan
 
Mutual Exclusion using Peterson's Algorithm
Mutual Exclusion using Peterson's AlgorithmMutual Exclusion using Peterson's Algorithm
Mutual Exclusion using Peterson's Algorithm
Souvik Roy
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt
ChABiDRazZaQ
 
BIL406-Chapter-9-Synchronization and Communication in MIMD Systems.ppt
BIL406-Chapter-9-Synchronization and Communication in MIMD Systems.pptBIL406-Chapter-9-Synchronization and Communication in MIMD Systems.ppt
BIL406-Chapter-9-Synchronization and Communication in MIMD Systems.ppt
Kadri20
 

Similar to Describe how to use sanction such that a process can send a payload w.pdf (20)

AOS Chapter 6 for internal.docx
AOS Chapter 6 for internal.docxAOS Chapter 6 for internal.docx
AOS Chapter 6 for internal.docx
 
IPC
IPCIPC
IPC
 
IPC
IPCIPC
IPC
 
Signal Handling in Linux
Signal Handling in LinuxSignal Handling in Linux
Signal Handling in Linux
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 
Operating system 22 threading issues
Operating system 22 threading issuesOperating system 22 threading issues
Operating system 22 threading issues
 
How we use Twisted in Launchpad
How we use Twisted in LaunchpadHow we use Twisted in Launchpad
How we use Twisted in Launchpad
 
Operating system 24 mutex locks and semaphores
Operating system 24 mutex locks and semaphoresOperating system 24 mutex locks and semaphores
Operating system 24 mutex locks and semaphores
 
Inter Process Comunication
Inter Process ComunicationInter Process Comunication
Inter Process Comunication
 
Intro Basic of OS .ppt
Intro Basic of OS .pptIntro Basic of OS .ppt
Intro Basic of OS .ppt
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works.
 
07 Systems Software Programming-IPC-Signals.pptx
07 Systems Software Programming-IPC-Signals.pptx07 Systems Software Programming-IPC-Signals.pptx
07 Systems Software Programming-IPC-Signals.pptx
 
Security Onion
Security OnionSecurity Onion
Security Onion
 
Robusta -Tool Presentation (DevOps).pptx
Robusta -Tool Presentation (DevOps).pptxRobusta -Tool Presentation (DevOps).pptx
Robusta -Tool Presentation (DevOps).pptx
 
Mutual Exclusion using Peterson's Algorithm
Mutual Exclusion using Peterson's AlgorithmMutual Exclusion using Peterson's Algorithm
Mutual Exclusion using Peterson's Algorithm
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt
 
Os
OsOs
Os
 
Lecture 5 inter process communication
Lecture 5 inter process communicationLecture 5 inter process communication
Lecture 5 inter process communication
 
BIL406-Chapter-9-Synchronization and Communication in MIMD Systems.ppt
BIL406-Chapter-9-Synchronization and Communication in MIMD Systems.pptBIL406-Chapter-9-Synchronization and Communication in MIMD Systems.ppt
BIL406-Chapter-9-Synchronization and Communication in MIMD Systems.ppt
 
Akka in Production - ScalaDays 2015
Akka in Production - ScalaDays 2015Akka in Production - ScalaDays 2015
Akka in Production - ScalaDays 2015
 

More from arenamobiles123

based on this evidence Syconoid sponges were derived from leuconoid.pdf
based on this evidence  Syconoid sponges were derived from leuconoid.pdfbased on this evidence  Syconoid sponges were derived from leuconoid.pdf
based on this evidence Syconoid sponges were derived from leuconoid.pdf
arenamobiles123
 
A) If a DNA double helix that is 100 base pairs in length has 32 a.pdf
A) If a DNA double helix that is 100 base pairs in length has 32 a.pdfA) If a DNA double helix that is 100 base pairs in length has 32 a.pdf
A) If a DNA double helix that is 100 base pairs in length has 32 a.pdf
arenamobiles123
 
Chapter2...22.            (Problem 3) Which of the following are.pdf
Chapter2...22.            (Problem 3) Which of the following are.pdfChapter2...22.            (Problem 3) Which of the following are.pdf
Chapter2...22.            (Problem 3) Which of the following are.pdf
arenamobiles123
 
Write a program that takes any input text and produces both a frequen.pdf
Write a program that takes any input text and produces both a frequen.pdfWrite a program that takes any input text and produces both a frequen.pdf
Write a program that takes any input text and produces both a frequen.pdf
arenamobiles123
 
why is reversibility an important characteristic of childrens .pdf
why is reversibility an important characteristic of childrens .pdfwhy is reversibility an important characteristic of childrens .pdf
why is reversibility an important characteristic of childrens .pdf
arenamobiles123
 
What are 2 ways that Alexander Hamilton’s ideas influenced the Unite.pdf
What are 2 ways that Alexander Hamilton’s ideas influenced the Unite.pdfWhat are 2 ways that Alexander Hamilton’s ideas influenced the Unite.pdf
What are 2 ways that Alexander Hamilton’s ideas influenced the Unite.pdf
arenamobiles123
 
Which key numbers help you asses your performance in an organizat.pdf
Which key numbers help you asses your performance in an organizat.pdfWhich key numbers help you asses your performance in an organizat.pdf
Which key numbers help you asses your performance in an organizat.pdf
arenamobiles123
 
Social behavior in termites does not include the reproductive isolat.pdf
Social behavior in termites does not include the reproductive isolat.pdfSocial behavior in termites does not include the reproductive isolat.pdf
Social behavior in termites does not include the reproductive isolat.pdf
arenamobiles123
 
Sam, a 27-year-old African-American male, was admitted to the hospit.pdf
Sam, a 27-year-old African-American male, was admitted to the hospit.pdfSam, a 27-year-old African-American male, was admitted to the hospit.pdf
Sam, a 27-year-old African-American male, was admitted to the hospit.pdf
arenamobiles123
 
8.15 Program Playlist (C++) You will be building a linked list. Mak.pdf
8.15 Program Playlist (C++) You will be building a linked list. Mak.pdf8.15 Program Playlist (C++) You will be building a linked list. Mak.pdf
8.15 Program Playlist (C++) You will be building a linked list. Mak.pdf
arenamobiles123
 

More from arenamobiles123 (20)

Consider the following experiment. There are 5 members of a team Jo.pdf
Consider the following experiment. There are 5 members of a team Jo.pdfConsider the following experiment. There are 5 members of a team Jo.pdf
Consider the following experiment. There are 5 members of a team Jo.pdf
 
A prolific couple had ten children.Through hard work and diligence a.pdf
A prolific couple had ten children.Through hard work and diligence a.pdfA prolific couple had ten children.Through hard work and diligence a.pdf
A prolific couple had ten children.Through hard work and diligence a.pdf
 
based on this evidence Syconoid sponges were derived from leuconoid.pdf
based on this evidence  Syconoid sponges were derived from leuconoid.pdfbased on this evidence  Syconoid sponges were derived from leuconoid.pdf
based on this evidence Syconoid sponges were derived from leuconoid.pdf
 
At noon Joyce drove to the lake at 30 miles per hour, but she made t.pdf
At noon Joyce drove to the lake at 30 miles per hour, but she made t.pdfAt noon Joyce drove to the lake at 30 miles per hour, but she made t.pdf
At noon Joyce drove to the lake at 30 miles per hour, but she made t.pdf
 
A) If a DNA double helix that is 100 base pairs in length has 32 a.pdf
A) If a DNA double helix that is 100 base pairs in length has 32 a.pdfA) If a DNA double helix that is 100 base pairs in length has 32 a.pdf
A) If a DNA double helix that is 100 base pairs in length has 32 a.pdf
 
Chapter2...22.            (Problem 3) Which of the following are.pdf
Chapter2...22.            (Problem 3) Which of the following are.pdfChapter2...22.            (Problem 3) Which of the following are.pdf
Chapter2...22.            (Problem 3) Which of the following are.pdf
 
Write a program that takes any input text and produces both a frequen.pdf
Write a program that takes any input text and produces both a frequen.pdfWrite a program that takes any input text and produces both a frequen.pdf
Write a program that takes any input text and produces both a frequen.pdf
 
why is reversibility an important characteristic of childrens .pdf
why is reversibility an important characteristic of childrens .pdfwhy is reversibility an important characteristic of childrens .pdf
why is reversibility an important characteristic of childrens .pdf
 
Which of the following tools is used to generate the profiles and se.pdf
Which of the following tools is used to generate the profiles and se.pdfWhich of the following tools is used to generate the profiles and se.pdf
Which of the following tools is used to generate the profiles and se.pdf
 
What are 2 ways that Alexander Hamilton’s ideas influenced the Unite.pdf
What are 2 ways that Alexander Hamilton’s ideas influenced the Unite.pdfWhat are 2 ways that Alexander Hamilton’s ideas influenced the Unite.pdf
What are 2 ways that Alexander Hamilton’s ideas influenced the Unite.pdf
 
Which of the following is a non-respiratory function of the lunga.pdf
Which of the following is a non-respiratory function of the lunga.pdfWhich of the following is a non-respiratory function of the lunga.pdf
Which of the following is a non-respiratory function of the lunga.pdf
 
Which key numbers help you asses your performance in an organizat.pdf
Which key numbers help you asses your performance in an organizat.pdfWhich key numbers help you asses your performance in an organizat.pdf
Which key numbers help you asses your performance in an organizat.pdf
 
what two things can system elements do with energy in the system.pdf
what two things can system elements do with energy in the system.pdfwhat two things can system elements do with energy in the system.pdf
what two things can system elements do with energy in the system.pdf
 
What is an Intervening Variable, Casual Prior Variable, and Partial .pdf
What is an Intervening Variable, Casual Prior Variable, and Partial .pdfWhat is an Intervening Variable, Casual Prior Variable, and Partial .pdf
What is an Intervening Variable, Casual Prior Variable, and Partial .pdf
 
The basic functional plan of the gonads includes all of the followin.pdf
The basic functional plan of the gonads includes all of the followin.pdfThe basic functional plan of the gonads includes all of the followin.pdf
The basic functional plan of the gonads includes all of the followin.pdf
 
The color of the small lymphocytes cytoplasm is a very () lilac a.pdf
The color of the small lymphocytes cytoplasm is a very () lilac a.pdfThe color of the small lymphocytes cytoplasm is a very () lilac a.pdf
The color of the small lymphocytes cytoplasm is a very () lilac a.pdf
 
Social behavior in termites does not include the reproductive isolat.pdf
Social behavior in termites does not include the reproductive isolat.pdfSocial behavior in termites does not include the reproductive isolat.pdf
Social behavior in termites does not include the reproductive isolat.pdf
 
Sam, a 27-year-old African-American male, was admitted to the hospit.pdf
Sam, a 27-year-old African-American male, was admitted to the hospit.pdfSam, a 27-year-old African-American male, was admitted to the hospit.pdf
Sam, a 27-year-old African-American male, was admitted to the hospit.pdf
 
question 4) Which of following elements are nonmetals Na O Ar S .pdf
question 4) Which of following elements are nonmetals Na O Ar S .pdfquestion 4) Which of following elements are nonmetals Na O Ar S .pdf
question 4) Which of following elements are nonmetals Na O Ar S .pdf
 
8.15 Program Playlist (C++) You will be building a linked list. Mak.pdf
8.15 Program Playlist (C++) You will be building a linked list. Mak.pdf8.15 Program Playlist (C++) You will be building a linked list. Mak.pdf
8.15 Program Playlist (C++) You will be building a linked list. Mak.pdf
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Describe how to use sanction such that a process can send a payload w.pdf

  • 1. Describe how to use sanction such that a process can send a payload with the signal that can be retrieved by the receiving process. Solution The kernel maintains two bit-vectors for every process • Every type of signal has a specific bit in this bit-vector • pending bit-vector records what signals have yet to be delivered to the process • Note: if multiple instances of a given signal occur before a process receives the signal, it will see only one instance of the signal • Signals indicate one or more events of given type have occurred • blocked bit-vector records what signals are currently not allowed to be delivered to the process • Can have a signal that is both blocked and pending • When the signal is unblocked, it will be delivered to the process • When a signal is delivered to a process, that type of signal is automatically blocked for the process • Prevents a given signal handler from interrupting itself • One kind of signal can interrupt another kind of signa A process isn’t always running when a signal is sent to it • e.g. kill() syscall is invoked by another process • e.g. a child process dies, causing SIGCHLD to be sent to parent, but a higher priority process currently preempts the parent • Kernels make a distinction between generating a signal and delivering the signal Already mentioned pending / blocked signal bit-vectors • At a coarse-grain level of detail, records which signals need to be delivered, and which signals are currently blocked from delivery • Each process also has a linked list of pending signals • siginfo_t struct records relevant details of the pending signal • Each process also has an array of “signal action” structs • Specifies how to handle each kind of signal • e.g. “default action,” “ignore,” or a user-space handler
  • 2. • (Flags also record other options for handling signals When a signal is sent to a process: • The kernel invokes a specific function to update the process’ signal structures, perform scheduling tasks, etc. • e.g. Linux 2.6 has specific_send_sig_info() kernel function • If the process already has a pending signal of that type, the new signal is ignored • For real-time signals, this test is skipped • Every occurrence of a real-time signal is delivered • If the process is ignoring the signal, nothing is done • No structures are updated • No scheduling tasks oc