C++
Email
Discuss
Print
Reprint

add to:
Del.icio.us
Digg
Google
Spurl
Slashdot
Y! MyWeb
Blink
Furl
April 15, 2003

The Boost.Threads Library

(Page 2 of 7)
May 2002/The Boost.Threads Library/Listing 1

Listing 1: The boost::thread class

#include <boost/thread/thread.hpp>
#include <iostream>

void hello()
{
  std::cout <<
    "Hello world, I'm a thread!"
    << std::endl;
}

int main(int argc, char* argv[])
{
  boost::thread thrd(&hello);
  thrd.join();
  return 0;
}
— End of Listing —
Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 Next Page


Please log in to post comments.
DR. DOBB'S CAREER CENTER
Ready to take that job and shove it? open | close
Search jobs on Dr. Dobb's TechCareers
Function:

Keyword(s):

State:  
  • Post Your Resume
  • Employers Area
  • News & Features
  • Blogs & Forums
  • Career Resources

    Browse By:
    Location | Employer | City
  • Most Recent Posts:



    INFO-LINK
     


    MARKETPLACE
    Ensure global WAN & LAN network availability
    Find out how to ensure global WAN and LAN network availability for all networked financial and banking applications across distributed organizations. Free white papers from NetScout.
    Find Solutions from IBMıs Business Partners
    Explore solutions that have proven success helping clients meet marketplace demands and align with IBM hardware and middleware platforms.
    Keep your Network Running!
    Build an Environment with Enhanced Security & Resilience with IBM.
    Your Applications Mean Business!
    IBM can help your company deliver greater business value. Click to learn how and download complimentary reports from IBM.
    IT Sales Lead Follow Up
    Fast and acurate IT lead qualification from websites, trade shows, direct mail, trade advertising or any other marketing sources. Don't let good leads die young. SSM: Strategic Sales & Marketing. Technology Lead Generation: Since 1989

    |
    SDMG Websites: BYTE.com, DotNetJunkies, MSDN Magazine, Sys Admin, SD Expo, SqlJunkies, TechNet Magazine, Unixreview