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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:41:21+00:00 2026-05-23T11:41:21+00:00

I have a program in Linux which is multithreaded. There are certain memory areas

  • 0

I have a program in Linux which is multithreaded. There are certain memory areas in which I’m interested to see if they have been written within a certain time period. For that I give only read access to those memory pages and install a signal handler for SIGSEGV. Now my question is, will each thread call the signal handler for itself. Say Thread 1 writes to some forbidden memory area, will it be the one to execute the signal handler?

  • 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-23T11:41:22+00:00Added an answer on May 23, 2026 at 11:41 am

    First of all

    Signal dispositions are process-wide;
    all threads in a process share the
    same disposition for each signal. If
    one thread uses sigaction() to
    establish a handler for, say, SIGINT,
    then that handler may be invoked from
    any thread to which the SIGINT is
    delivered.

    But read on

    A signal may be directed to either the
    process as a whole or to a specific
    thread
    . A signal is thread-directed if

    it is generated as the direct result
    of the execution of a specific
    hardware instruction within the
    context of the thread (SIGBUS, SIGFPE, SIGILL, and SIGSEGV)

    I am quoting from TLPI.

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

Sidebar

Related Questions

I have a program written in C and running on Linux which acquires streaming
So I have a Linux program that runs in a while(true) loop, which waits
I have been asked to write a java program on linux platform. According to
I have a program written in C++, on Linux, compiled with -g. When I
Working in Linux and using C++. I have a program which initiates a thread.
I have a program written in C++ which uses dlopen to load a dynamic
I have a C++ program in Linux which operates on and gives as the
I have a multithread linux program which uses epoll(7). The epoll(7) man page says
I have a simple program under Linux which sends SIGUSR1 signal to its child
My linux (SLES-8) server currently has glibc-2.2.5-235, but I have a program which won't

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.