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 568099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:09:12+00:00 2026-05-13T13:09:12+00:00

I have done the following: Create a virtual timer that triggers repeatedly. Install signal

  • 0

I have done the following:

  1. Create a virtual timer that triggers repeatedly.
  2. Install signal handler for SIGVTALRM
  3. Call clone syscall
  4. Set sched_affinity such that the cloned thread runs on a different CPU

Will the cloned thread also be listening for SIGVTALRM? So will both the threads call the signal handler when SIGVTALRM is triggered? Also, after creating the new thread, can I change its signalhandler for SIGVTALRM to another function without affecting the main threads signalhandler?

I’m guessing it depends on the flags passed to clone(). Mainly, I’m using CLONE_SIGHAND and SIGCHLD. Does it depend on other flags as well?

  • 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-05-13T13:09:12+00:00Added an answer on May 13, 2026 at 1:09 pm

    It depends entirely on whether you specify CLONE_THREAD to the clone syscall. If you do not, then the itimer is not inherited by the child (so it will not be signalled when the timer expires). It will still have a signal handler installed though.

    If you do specify CLONE_THREAD, then the child is considered to belong to the same process as the parent. When the timer expires, one of the threads will be signalled (and run the signal handler) – but it’s not specified which one.

    What happens if when you try to change the signal handler in the child depends on the CLONE_SIGHAND flag. If it’s not set, then the child can happily call sigaction to change the signal handler without affecting the parent; but if CLONE_SIGHAND is set, then when the child calls sigaction, the signal handler is changed for the entire process. Note also that if you specify CLONE_THREAD, you also have to specify CLONE_SIGHAND.

    The child can, however, use sigprocmask to mask out the SIGVTALRM signal, without affecting the parent.

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

Sidebar

Related Questions

I have done the following form <% form_for @anexo, :url => {:action => create},
I have done the following trying to create 2d and 3d arrays: Array1 =
I have done the following code in JavaScript to put focus on the particular
How can I self-sign an iPhone application using Xcode? I have done the following:
I have done simple java app for blackberry, while building am getting following error.
I have just started using jQuery and although following code gets the job done,
I have done a bit of research into this and it seems that the
I have done create,edit functionality & trying to do delete functionality but by default
Following the walkthrough at http://msdn.microsoft.com/en-us/library/ee707351(v=VS.91).aspx I have a working Silverlight solution that employs a
Assuming you have the following database table: create table Names ( Id INT IDENTITY

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.