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#
  4. backgroundworker vs threading

backgroundworker vs threading

Scheduled Pinned Locked Moved C#
visual-studioquestion
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.
  • B Offline
    B Offline
    brsecu
    wrote on last edited by
    #1

    Whats the difference?

    I S 2 Replies Last reply
    0
    • B brsecu

      Whats the difference?

      I Offline
      I Offline
      il_masacratore
      wrote on last edited by
      #2

      Backgroundworker is an easy way to open a different thread in an higher level implementation to make an isolated operation. Theading requires sometimes more control about states, semaphors...

      Visit my blog at http://dotnetforeveryone.blogspot.com/

      1 Reply Last reply
      0
      • B brsecu

        Whats the difference?

        S Offline
        S Offline
        Scott Dorman
        wrote on last edited by
        #3

        Ultimately there is no difference as both will allocate a thread from the thread pool. The BackgroundWorker component is a "visual" component (something that can be dropped on to a form at design time) that was created to help simplify creating a multi-threaded application. Using the background worker is not ideal for all situations and using it doesn't mean you shouldn't have an understanding of how threading behaves.

        Scott.


        —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

        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