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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Is it Posibble to multithread a for loop

Is it Posibble to multithread a for loop

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 1 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.
  • F Offline
    F Offline
    FISH786
    wrote on last edited by
    #1

    Can someone direct me to an article if this is possible. I have 3 interloops in a process that takes about an hour or so to complete, based on the data it seems to be right. However I have that process in it's own worker thread. I was wondering if that can be further multithreaded?

    S T 2 Replies Last reply
    0
    • F FISH786

      Can someone direct me to an article if this is possible. I have 3 interloops in a process that takes about an hour or so to complete, based on the data it seems to be right. However I have that process in it's own worker thread. I was wondering if that can be further multithreaded?

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      As you've mentioned a 'for' loop, I think OpenMP[^] is probably the simplest first thing to investigate, as it's aimed at that sort of thing[^]. Here's a CP article[^]...

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      • F FISH786

        Can someone direct me to an article if this is possible. I have 3 interloops in a process that takes about an hour or so to complete, based on the data it seems to be right. However I have that process in it's own worker thread. I was wondering if that can be further multithreaded?

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        FISH786 wrote:

        However I have that process in it's own worker thread. I was wondering if that can be further multithreaded?

        Yes and No!, answer is based on software design, your company software architect can help in this case. It very difficult to answer this question from remote.

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

        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