Sorry Ken, I do know the boosts library do exist, but accordingly with what I know boosts still isn't concidered part of the c++ library, so the fact that there're no native c++ thread support is still true. Boosts manage threads but a bunch of other libraries also do it. This isn't to say you're wrong, boosts really would be a great suggestion, but I also sent a true message. Marlon 2008/2/16, Ken Perry <whistler@xxxxxxxxxxxxx>: > > > > This used to be true before the boost library. If you use the boost threads > they use the native operating system threads and thus make it easy to port. > so grab the www.boost.org library for threads and that will work no matter > which OS you use. > > Ken > > -----Original Message----- > From: programmingblind-bounce@xxxxxxxxxxxxx > [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Marlon Brandão > de Sousa > Sent: Friday, February 15, 2008 8:56 PM > To: programmingblind@xxxxxxxxxxxxx > Subject: Re: thread.sleep() for c++? > > Hello, > Well, C or c++ doesn't present a built in library to manage threads. > This means you will need to access the operating system native functions to > manage them, and this is different in each OS. There are OS that even don't > support threads, so if you are using one of them you will have to figure how > to simulate it, although modern operating systems like windows and most > ports of unix for most part of platforms have it. If you can give more > dtails we can provide help on how to do it. > About the beep function, where was one in borland turbo c++ for DOS, long > time ago. I don't know if it still works, but it shouldn't be hard to build > one ... > Marlon > > 2008/2/15, Alex Hall <mehgcap@xxxxxxx>: > > I have a java timer that I made out of bordum. It uses > > thread.sleep() to run for the input time. I really want to use the pc > > speaker and the beep() function in c++. Is there a method I can call > > in a c++ program similar to Java's thread.sleep()? > > Even better, is there some way of using a method like beep() in Java? > > > > Have a great day, > > Alex > > __________ > > View the list's information and change your settings at > > //www.freelists.org/list/programmingblind > > > > > > > -- > When you say "I wrote a program that crashed Windows," people just stare at > you blankly and say "Hey, I got those with the system, for free." > Linus Torvalds > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > > -- When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind