Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8300165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:26:32+00:00 2026-06-08T16:26:32+00:00

When one process sends a signal to another process, under what circumstances does receiving

  • 0
  1. When one process sends a signal to another process, under what circumstances does receiving process wait until it is rescheduled to run?
  2. Under what circumstances does the installed signal handler get invoked immediately?
  3. How much overhead does the process incur when raising a signal compared to just call the corresponding signal handler directly?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T16:26:33+00:00Added an answer on June 8, 2026 at 4:26 pm

    About delivery of signals, TLPI states that signals are “normally” delivered when a task is next scheduled, when switching from kernel mode to user mode, or “immediately” when the task is already running (presumably “immediately” would have to happen by firing an interrupt first, otherwise how could it do that). Well, whatever this means, it is not strictly binding, but it’s very close to what happens.

    You have to distinguish between realtime and “normal” signals as well as between “normal” signals that are generated synchronously, most of the time because of a hardware event (e.g. segmentation fault) and those that aren’t (they’re genereated asnychronously).

    Realtime signals are queued, normal signals are not. That means that the implementation of normal signals is most likely merely something like one per-task word that serves as a bitmask.
    Generating a “normal” signal means setting a bit, and when the OS next decides whether a signal has to be delivered, it tests the word against zero, and if necessary figures out which bit(s) were set, and calls the signal handler(s), if any, accordingly.
    The only practical reason why one needs to know this is because it is possible to “lose” signals. If two or more signals are generated before the first is delivered, it’s still only one signal alltogether.

    The implementation of realtime signals (which are required to queue up to a implementation-dependent length) is obviously much more complicated.

    Signals that happen because of a hardware event (e.g. segfault) are generated synchronously, in the same way as if the process called kill on itself (chapter 22.4 TLPI), i.e. they are delivered “immediately”, for two reasons. First, it does not make sense to do something else, and second there is already a kernel/user switch happening when the trap handler returns. So delivery is always “immediately” anyway.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How does one implement a multithreaded single process model in linux fedora under c
When sending a signal from one process to another, I also want to send
So a OS multi-tasks and runs one process at a given moment (assuming it's
Goal Pass images generated by one process efficiently and at very high speed to
I want to make pipe or queue in Python between one process (current) and
In a system I am currently working on, there is one process that loads
One of my process is at Interruptible sleep state. Note I ran the process
We have implemented a process in one of the systems where it's scheduled to
So I'm trying to create a simple (if such one exists) login process for
Which one to use for process monitoring and why?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.