简体   繁体   English

使用cygwin在Windows中创建新线程

[英]Create new thread in windows with cygwin

I am using netbeans. 我正在使用netbeans。 I installed cygwin and use it for c++ programming in netbeans. 我安装了cygwin并将其用于netbeans中的c ++编程。 I want to create a thread. 我想创建一个线程。 I searched lots of sites. 我搜索了很多网站。 But I couldn't find anything suitable for my condition(C++ and windows(as OS) and not visual C++). 但是我找不到适合我的条件的任何东西(C ++和Windows(作为OS),而不是可视C ++)。

Cygwin实现POSIX Threads API,也称为pthreads

You have multiple options: 您有多种选择:

By the way, Visual C++ is just an IDE. 顺便说一句,Visual C ++只是一个IDE。 It has nothing to do with threads. 它与线程无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM