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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:07:57+00:00 2026-06-01T20:07:57+00:00

The specs say the function MUST NOT block waiting for the thread or processes

  • 0

The specs say the function “MUST NOT block waiting for the thread or processes to finish. In other words, typically,function() will return before the child processes and the worker thread have completed.”
How can I accomplish that? Saying pthread_join makes the function wait for the pthread to end, and without it, the thread is cancelled before it does all the work.

Thanks.

  • 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-01T20:07:57+00:00Added an answer on June 1, 2026 at 8:07 pm

    To me this sounds like you will have to store a reference to the thread in a container of threads, which is either global or returned by the function and kept by the caller. Then, at the very end of your process (but possibly longer after your function has returned), you call pthread_join on all threads in that container to ensure they are properly finished.

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

Sidebar

Related Questions

Let's say that I have an Erlang function, with spec. -spec foo(integer(), string()) ->
For a POST method, the W3 specs say: If a resource has been created
Let say I have three thread handles HandleList[0] = hThread1; HandleList[1] = hThread2; HandleList[2]
I am looking for a design pattern where it fits these specs: 1- Say
In the Apple Docs, they say that NSDateFormatter uses the Unicode for spec. I've
Custom data attributes: http://dev.w3.org/html5/spec/Overview.html#embedding-custom-non-visible-data When I say work, I mean, if I’ve got HTML
how do i make the div refresh, say after 10 secs and execute the
the specs: const unsigned short READ_ONLY = 0; const unsigned short READ_WRITE = 1;
According to HTML specs, the select tag in HTML doesn't have a readonly attribute,
Here are the specs that I'm trying to implement in a nutshell: 1) Some

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.