Liste des Groupes | Revenir à cl c |
On 2024-12-01, Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:Here is one I used to always use back in the day over on Windows:On Sun, 01 Dec 2024 15:10:03 +0000, candycanearter07 wrote:Yes; they stupidly took a chunk of POSIX (IEE 1003 standard, originallyThere's a standard library for multithreading.>
https://www.man7.org/linux/man-pages/man7/pthreads.7.html
Since C11, the C standard library has provided it's own support for
threading, which (I'm told) closely resembles the POSIX threading
model implemented in the Linux pthreads library.
formed as a fork of C to standarize Unix things) and cloned an
incompatible version with different types and function names.
For over a decade before that, people were already using POSIX threads
on platforms that don't have POSIX threads, via libraries.
That's an excellent solution that moves out of the way on platforms
where you do have POSIX threads.
Standards cribbing from other standards, and changing things, is totally
counterproductive.
Les messages affichés proviennent d'usenet.