pthread.h
is a header for the Unix/Linux (POSIX) API for threads. A POSIX layer such as Cygwin would probably compile an app with #include <pthreads.h>
.
The native Windows threading API is exposed via #include <windows.h>
and it works slightly differently to Linux’s threading.
Still, there’s a replacement “glue” library maintained at http://sourceware.org/pthreads-win32/ ; note that it has some slight incompatibilities with MinGW/VS (e.g. see here).
Related Posts:
- pthread_join() and pthread_exit()
- Undefined reference to pthread_create in Linux
- cast to pointer from integer of different size, pthread code
- Is there a good Valgrind substitute for Windows?
- Still Reachable Leak detected by Valgrind
- Mutex example / tutorial? [closed]
- Undefined reference to pthread_create
- How to go from fopen to fopen_s
- How to print pthread_t
- how to open an mp3 file with c
- How to initialize array to 0 in C?
- pthread sleep linux
- How to do scanf for single char in C
- Sign extend a nine-bit number in C
- Break statement not within loop or switch in C
- How to properly malloc for array of struct in C
- Cache Simulator in C
- make: Nothing to be done for `all’
- expected expression before ‘{‘ token
- Setting std=c99 flag in GCC
- C Vector/ArrayList/LinkedList
- Convert char array to a int number in C
- Bind failed: Address already in use
- What is the difference between %f and %lf in C?
- What is stdin in C language?
- How to pass 2D array (matrix) in a function in C?
- error: ‘for’ loop initial declarations are only allowed in C99 mode [duplicate]
- c – warning: implicit declaration of function ‘printf’
- Undefined Reference issues using Semaphores
- What is time(NULL) in C?
- How to compile makefile using MinGW?
- Portable way to check if directory exists [Windows/Linux, C]
- too many arguments for format [-Wformat-extra-args]
- Incorrect checksum for freed object on malloc
- Is there a replacement for unistd.h for Windows (Visual C)?
- How to copy a char array in C?
- Simple way to check if a string contains another string in C?
- How to convert integer to char in C?
- Where to find the complete definition of off_t type?
- struct has no member named
- printf not printing to screen
- Initializing array of structures
- What is the difference between array and enum in C ?
- How can one see content of stack with GDB?
- What is signed integer overflow?
- What does the term “empty loop” refer to exactly in C and C++?
- When to use const char * and when to use const char []
- What do numbers using 0x notation mean?
- What integer hash function are good that accepts an integer hash key?
- Can I create an Array of Char pointers in C?
- Proper way to empty a C-String
- Does stack grow upward or downward?
- Convert Little Endian to Big Endian
- malloc(): memory corruption
- X86 assembly – Handling the IDIV instruction
- error C2371: ‘functionname’ redefinition: different basic types
- Pause screen at program completion in C
- How to write to a file using open() and printf()?
- How do you clear the console screen in C?
- note: previous implicit declaration of ‘point_forward’ was here
- What exactly is meant by “de-referencing a NULL pointer”?
- Difference between fgets and fscanf?
- getc() vs fgetc() – What are the major differences?
- Can’t understand the working of getint() in C as per K&R
- Lua – Number to string behaviour
- Why PTHREAD_COND_INITIALIZER may be used to initialize a condition variable only when it is declared?
- Tokenizing strings in C
- Reading in double values with scanf in c
- Realloc Invalid Pointer in C
- ld.exe: cannot open output file … : Permission denied
- Using sys/socket.h functions on windows
- What tools are there for functional programming in C?
- typedef fixed length array
- In C, what exactly happens when you pass a NULL pointer to strcmp()?
- How to format strings using printf() to get equal length in the output
- Why and when to use static structures in C programming?
- Where does linux store my syslog?
- Example of waitpid() in use?
- Invalid write of size 1
- How to solve static declaration follows non-static declaration in GCC C code?
- realloc(): invalid next size when reallocating to make space for strcat on char *
- Can a function return two values?
- C: warning: excess elements in array initializer; near initialization for ‘xxx’ ; expects ‘char *’, but has type ‘int’
- How to know what the ‘errno’ means?
- Split string with multiple delimiters using strtok in C
- Printf was not declared in this scope
- warning: missing terminating ” character [enabled by default]
- How to free memory from char array in C
- Initializing 2D char array in C
- Pointer to a string in C?
- Process exited with return value 3221225477
- gdb: No symbol “i” in current context
- Cross Platform C library for GUI Apps?
- Implicit function declarations in C
- Pre increment vs Post increment in array
- Convert long long to string in C?
- %p Format specifier in c
- “Nothing to be done for makefile” message
- Convert Char to String in C
- What is the difference between signed and unsigned int