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

  • SEARCH
  • Home
  • 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 7972407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:51:21+00:00 2026-06-04T07:51:21+00:00

From: http://linux.die.net/man/3/pthread_join If the thread calling pthread_join() is canceled, then the target thread will

  • 0

From: http://linux.die.net/man/3/pthread_join

If the thread calling pthread_join() is canceled, then the target thread will remain joinable (i.e., it will not be detached).

Does this mean that the target threads will not get aborted if we cancel the main thread calling pthread_join?

  • 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-04T07:51:22+00:00Added an answer on June 4, 2026 at 7:51 am

    pthread_join() doesn’t ‘abort’ a target thread in the first place, so I’m not sure if I fully understand the question.

    Basically, if a thread (the main thread or otherwise) calls pthread_join() it is asking to block until the target thread has exited. In the normal case, once the target thread has exited,the thread that called pthread_join() will unblock and any resources that were associated witht he target thread can be freed by the system.

    However, if a thread has called pthread_join() (and is blocked waiting for the target thread to exit) and the blocked thread gets cancelled, then essentially nothing happens to the target of the pthread_join() call (it continues on). What the docs are clarifying is that that thread remains ‘joinable’ – which means:

    • another thread can call pthread_join() to wait for it to finish
    • the resources that the system can release when a thread completes and is joined will not be released unless another thread joins the target thread or pthread_detach() is called for the target thread. calling pthread_detach() for a thread makes it ‘unjoinable’ – it continues running and it’s resources will get freed when it exits (the detach call indicates to the system that nothing will use those resources after the thread exits), but no thread can join it anymore.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand Double-Array Trie implementation from http://linux.thai.net/~thep/datrie/datrie.html But I do not
UPDATE -- LINUX FEDORA 15 Following an example from: http://simonwillison.net/2009/Nov/23/node/ My code: var util
I am using linux mint, and consulting VendorIds from http://developer.android.com I don't know how
I installed wxWidgets-2.8.10 following instructions from this page: http://wiki.wxwidgets.org/Compiling_and_getting_started Libraries directory: alex@alex-linux:/usr/local/lib$ ls |
Cited from http://xss-proxy.sourceforge.net/Advanced_XSS_Control.txt : As many here probably know, current XSS attacks typically come
I recently downloaded linux source from http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.1.tar.bz2 . I came across the below paragraph
I am converting a linux script from http://www.perlmonks.org/index.pl?node_id=217166 specifically this: #!/usr/bin/perl -w use strict;
I am trying to run this snippet from http://www.ibm.com/developerworks/linux/library/l-prog3.html on a python 2.6 runtime.
i got a Linux Kernel from http://www.at91.com/linux4sam/bin/view/Linux4SAM/LinuxKernel running on my ARM board. I have
how can i convert my grails application from http to https under Linux operating

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.