Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Threads

Threads

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++linuxtutoriallounge
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    I don't know much about thread programming, but I have a general question. Are threads more of an operating system function. For example there isn't any thread functions in the STL are there? Wouldn't threads be dealt with differently on Linux and Windows? Thanks.

    D A A 3 Replies Last reply
    0
    • A Anonymous

      I don't know much about thread programming, but I have a general question. Are threads more of an operating system function. For example there isn't any thread functions in the STL are there? Wouldn't threads be dealt with differently on Linux and Windows? Thanks.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Anonymous wrote: For example there isn't any thread functions in the STL are there? Correct. Anonymous wrote: Wouldn't threads be dealt with differently on Linux and Windows? While the implementation between the two OSs would no doubt be different, I suspect the net result of each would be somewhat similar.


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      1 Reply Last reply
      0
      • A Anonymous

        I don't know much about thread programming, but I have a general question. Are threads more of an operating system function. For example there isn't any thread functions in the STL are there? Wouldn't threads be dealt with differently on Linux and Windows? Thanks.

        A Offline
        A Offline
        ASchunk
        wrote on last edited by
        #3

        Hi, yes threads are part of the Operating system. Windows for example handles threads in a different manner than Unix or Linux does. Windows assigns to each thread a certain amount of time during which this thread can perform its task. If there are multiple threads at one time Windows determines which thread has priority of the others and executes this thread. Linux and Unix handle threads differently. The stl can also handle threads yet it does not have a special class or library that deals with threads. You have to write your own thread managing class or library.

        1 Reply Last reply
        0
        • A Anonymous

          I don't know much about thread programming, but I have a general question. Are threads more of an operating system function. For example there isn't any thread functions in the STL are there? Wouldn't threads be dealt with differently on Linux and Windows? Thanks.

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          Thanks for the information.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups