answersLogoWhite

0

How to create a thread in C plus plus?

Updated: 8/18/2019
User Avatar

Wiki User

14y ago

Best Answer

Not part of the language, platform-dependent.

Windows: CreateThread

Posix: pthread_create in pthread.h

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to create a thread in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How to create a thread in c?

With pthread_create.


How do you create .exe file in c plus plus?

You can create an exe-file from your C++ source, if you have a compiler.


What is thread in c language?

thread is not specific to C-language. Use wikipedia to find out what threads are, and use Posix Threads (or pthreadsfor short) to create multi-threaded programs in C


Can a thread create a process?

No, a thread can't create aprocess, because the environment of the thread is a part of a process which created this thread.


How do you create folder with c plus plus?

Use function mkdir.


How do you create a class in C plus plus?

class class_name { private: data_members; public: member_functions; };


What is a thread in c?

A thread is basically a lightweight process.


How do you write Multithreaded applications using C plus plus?

Use std::packaged_task (preferably) or std::thread to start a new thread. Use std::future (preferred), std::mutex or std::atomic to share information between threads.


Which one easier C plus plus or assembly language?

C++, but it's always worth learning both, if only to better understand the machine code you create with C++.


It keeps the thread in position?

It keeps the thread in position


How do you write classes and objects for hospital management software using objective c or c plus plus?

You declare a class as follows: class MyClass { //some stuff here... } You create an object as follows: MyClass object; This is how you create classes and objects in C++.


How do you create a game library for a c plus plus compiler used for 3D sonic the hedgehog games?

You would have to use coding.