SlideShare a Scribd company logo
any one has knowladge in C unix opreating system .. please help Describe how to use sigaction
such that a process can send a payload with the signal that can be retrieved by the receiving
process.
Solution
Signals are intented for passing an excessive data between processes. Consider another IPC
mechanism like pipes, sockets etc.
Or Alternatively you can use them in conjuction. Eg, share 2 ends of pipe between processes,
then write something to it in process A , then send signal to process B. Delivering of a signal to
process B is treated as readiness to tead from a pipe, then process B just reads data from a pipe,
that were written by A.
When installing sigaction() use SA_SIFINFO() so that the signature of handler is
void signal_handler(int signum, siginfo_t *info, void *context), context is a pointer or an int
stored in an union of type union sigval.

More Related Content

PDF
Describe how to use sanction such that a process can send a payload w.pdf
PPTX
Unix signals
PDF
Signal Handling in Linux
PPTX
Unixppt (1) (1).pptx
PPT
SOGNAL DAEMON AND PROCESSING CRYPTOGRAPHY NOTES
PDF
System Programming Assignment Help- Signals
PPT
Traffic Signal Synchronization Operating Systems
PDF
Usp notes unit6-8
Describe how to use sanction such that a process can send a payload w.pdf
Unix signals
Signal Handling in Linux
Unixppt (1) (1).pptx
SOGNAL DAEMON AND PROCESSING CRYPTOGRAPHY NOTES
System Programming Assignment Help- Signals
Traffic Signal Synchronization Operating Systems
Usp notes unit6-8

Similar to any one has knowladge in C unix opreating system .. please help Desc.pdf (9)

PPTX
07 Systems Software Programming-IPC-Signals.pptx
PPT
signal power point presentation it is useful
PPTX
PPTX
PDF
Course 102: Lecture 19: Using Signals
ODP
Sysprog 11
PDF
ODP
Sysprog 12
ODP
Sysprog 12
07 Systems Software Programming-IPC-Signals.pptx
signal power point presentation it is useful
Course 102: Lecture 19: Using Signals
Sysprog 11
Sysprog 12
Sysprog 12
Ad

More from arsmobiles (20)

PDF
For each NADH that supplies electrons to the electron transport syst.pdf
PDF
Biology II . Please answer all of these questions only if you are su.pdf
PDF
During spermatogenesis in the seminiferous tubules, the position of .pdf
PDF
A model of a system is best characterized by the following statement.pdf
PDF
4- what is the link between asset diversification and the liquidit.pdf
PDF
A book by Nozick. The experience machine. “what does matter to us in.pdf
PDF
A common symptom of pharyngitis is swelling of the. interior cervical.pdf
PDF
Define nonconcordant variation Why does nonconcordant variation mak.pdf
PDF
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
PDF
Could you help me with this question Thanks so much!Let T be an e.pdf
PDF
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
PDF
List for a company you either work or are familiar with, the interna.pdf
PDF
Write a C program that uses a recursive function to print a triangle .pdf
PDF
Which avenue of research is least likely to reveal whether asexual or.pdf
PDF
When testing the difference between two population means, the varian.pdf
PDF
IT Project Management1. Please compare and contrast a traditional .pdf
PDF
Whats the relationship between DNA and RNA Whats the relat.pdf
PDF
What does it mean to destroy something at the molecular level in ter.pdf
PDF
What is a rain shadow, and why does it happenSolutionThe warm.pdf
PDF
Use transformations to graph this function. (Do this on paper. Your t.pdf
For each NADH that supplies electrons to the electron transport syst.pdf
Biology II . Please answer all of these questions only if you are su.pdf
During spermatogenesis in the seminiferous tubules, the position of .pdf
A model of a system is best characterized by the following statement.pdf
4- what is the link between asset diversification and the liquidit.pdf
A book by Nozick. The experience machine. “what does matter to us in.pdf
A common symptom of pharyngitis is swelling of the. interior cervical.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
Could you help me with this question Thanks so much!Let T be an e.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
List for a company you either work or are familiar with, the interna.pdf
Write a C program that uses a recursive function to print a triangle .pdf
Which avenue of research is least likely to reveal whether asexual or.pdf
When testing the difference between two population means, the varian.pdf
IT Project Management1. Please compare and contrast a traditional .pdf
Whats the relationship between DNA and RNA Whats the relat.pdf
What does it mean to destroy something at the molecular level in ter.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdf
Use transformations to graph this function. (Do this on paper. Your t.pdf
Ad

Recently uploaded (20)

PDF
IGGE1 Understanding the Self1234567891011
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
RMMM.pdf make it easy to upload and study
PDF
Trump Administration's workforce development strategy
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Computing-Curriculum for Schools in Ghana
PDF
Complications of Minimal Access Surgery at WLH
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
IGGE1 Understanding the Self1234567891011
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Weekly quiz Compilation Jan -July 25.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
RMMM.pdf make it easy to upload and study
Trump Administration's workforce development strategy
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Computing-Curriculum for Schools in Ghana
Complications of Minimal Access Surgery at WLH
A powerpoint presentation on the Revised K-10 Science Shaping Paper
What if we spent less time fighting change, and more time building what’s rig...
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Cell Types and Its function , kingdom of life
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3

any one has knowladge in C unix opreating system .. please help Desc.pdf

  • 1. any one has knowladge in C unix opreating system .. please help Describe how to use sigaction such that a process can send a payload with the signal that can be retrieved by the receiving process. Solution Signals are intented for passing an excessive data between processes. Consider another IPC mechanism like pipes, sockets etc. Or Alternatively you can use them in conjuction. Eg, share 2 ends of pipe between processes, then write something to it in process A , then send signal to process B. Delivering of a signal to process B is treated as readiness to tead from a pipe, then process B just reads data from a pipe, that were written by A. When installing sigaction() use SA_SIFINFO() so that the signature of handler is void signal_handler(int signum, siginfo_t *info, void *context), context is a pointer or an int stored in an union of type union sigval.