- Mastering C++ Multithreading
- Maya Posch
- 76字
- 2021-07-15 17:34:03
Windows support
It's also possible to use the POSIX APIs in a limited fashion using, for example, the following:
![](https://epubservercos.yuewen.com/6F573C/19470405908947306/epubprivate/OEBPS/Images/p5.jpg?sign=1739003766-oEbesz0fgTO9OpgYe649utN0HaYBVbXu-0-af52a09eb0848282e7d6656135212ca4)
POSIX on Windows is generally not recommended. Unless there are good reasons to use POSIX (large existing code base, for example), it's far easier to use one of the cross-platform APIs (covered later in this chapter), which smooth away any platform issues.
In the following sections, we'll look at the features offered by the Pthreads API.