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. Threading

Threading

Scheduled Pinned Locked Moved C#
question
4 Posts 4 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.
  • Y Offline
    Y Offline
    yesu prakash
    wrote on last edited by
    #1

    Hi, What is the diffrent between threading and multi threading? Is there any concept called single threading? Thankyou YPKI

    D M M 3 Replies Last reply
    0
    • Y yesu prakash

      Hi, What is the diffrent between threading and multi threading? Is there any concept called single threading? Thankyou YPKI

      D Offline
      D Offline
      Deresen
      wrote on last edited by
      #2

      Well, you can have a single thread running. This means you have 'some code' + a 'thread', with multithreading you have several threads running paralel to each other, like this: 'some code' + a 'thread' + a 'thread' etc. So you can say single threading is just one thread.

      1 Reply Last reply
      0
      • Y yesu prakash

        Hi, What is the diffrent between threading and multi threading? Is there any concept called single threading? Thankyou YPKI

        M Offline
        M Offline
        musefan
        wrote on last edited by
        #3

        hmmmm... multi threading is where more than one thread is used in an application. The main benifit of this would be to perform tasks while alowing other task to continue thier work at the same time. A windows form application initially will run on one thread, commonly called the UIThread, all User Interaction with the application therefore runs on a single thread. In this case any tasks which may take more than a seconds or two to complete should be run on a seperate thread. This gives the UIThread the freedom to handle further User Interaction without seeming that the application has frozen. So single threading is basically what you get as standard with any program that has not created any other threads within it.

        Life goes very fast. Tomorrow, today is already yesterday.

        1 Reply Last reply
        0
        • Y yesu prakash

          Hi, What is the diffrent between threading and multi threading? Is there any concept called single threading? Thankyou YPKI

          M Offline
          M Offline
          Muammar
          wrote on last edited by
          #4

          When a piece of work is being carried using the default thread, then you want to do another piece of work but the first process is still running then you'll have to wait until the first process finishes so the compiler stack moves to the next process and that would be the case of a single threaded module. Unlike the single threaded designs, you can run more than one process simultaneously. You might wanna read about BackgroundWorker and maybe delegates as well.


          All generalizations are wrong, including this one! (\ /) (O.o) (><)

          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