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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:53:18+00:00 2026-06-15T15:53:18+00:00

I am quite a newbie to c programming. Until now i only found pthread_mutex_lock

  • 0

I am quite a newbie to c programming. Until now i only found pthread_mutex_lock can make the code region run only by one thread. Does there are any other ways to implement a lock? Or every other way to do a lock is still use pthread_mutex_lock function?

  • 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-15T15:53:19+00:00Added an answer on June 15, 2026 at 3:53 pm

    Threads were only introduced into the ISO C standard with C11, a rather recent edition to the standard so not necessarily widely supported yet.

    You need to look into threads.h and the mtx_* functions for an understanding of that.

    Before then, pthreads was probably your best bet with its wide implementation although, not being standard C (a), its support wasn’t mandated.

    For example, Windows has its own way of doing threading, using functions like CreateThread.

    However, there are various third-party products such as pthreads-win32 that aim to give pthreads support to Windows, to assist in porting of applications from POSIX-compliant operating systems.


    (a) It is a POSIX standard (part of IEEE 1003.1) so that may be good enough for some people.

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

Sidebar

Related Questions

HERE IS THE CODE: http://min.us/mWdMO0n14 I'm a Obj C newbie, so I've searched quite
I'm a regular expression newbie and I can't quite figure out how to write
As a newbie, I am quite confused how open source software is can/be licensed.
I'm quite newbie in C and now I'm trying to implement basic generic linked
I'm quite a newbie to Cocoa & Mac programming. I have a WebView and
I'm quite a newbie with Boost, and my only experience of surfing though a
quite a newbie here but here's a small test code that explains my issue.
I'm learning Prolog from Learn prolog now book. I'm quite newbie in prolog and
I am quite a newbie with OSGi and struggeling with including bundles into my
I am quite a newbie in OOP using java and I'm learning as I

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.