• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

threads in c/c++

Is thread  possible in C/C++?? if so how??
0
prasen120998
Asked:
prasen120998
  • 2
  • 2
  • 2
  • +4
1 Solution
 
pitonyakCommented:

Look up _beginthread depending on the compiler that you use it will probably be similar to

_beginthread(pointer_to_func_to_run, NULL, stackSize, Handle);

What system and compiler are you using?

I have used this on linux, windows, and OS/2.


0
 
AlexVirochovskyCommented:
If you want , i can send you simple full example using threads in c/c++ for
windows(write you EMail).
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
xutaoCommented:
0
 
forzaCommented:
If you're using Linux then try Pthreads!
0
 
IexpertCommented:
Use a standard interface so you can port you threading software
around various platforms.

The best available at the moment is pthreads which is available
on Linux & Win32 etc.

The Win32 port of pthreads is @ http://sourceware.cygnus.com/pthreads-win32/

Just search the www for pthreads and you should find
loads of tutorial/reference material.
0
 
forzaCommented:
Yes pthreads works in Windows too...
I'm using pthreads myself with Linux on my dual Celeron and it's just great.

Here's a good link: http://www-rcd.cc.purdue.edu/Paragon/Docs/Intel/Manuals/psug/psug_52.html
0
 
jpalmeroestebanCommented:
if the operating system has threads is possible that he has an api
0
 
prasen120998Author Commented:
Comment accepted as answer
0
 
prasen120998Author Commented:
Thanks others also, for their valuable comments...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 2
  • 2
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now