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. Thread.Abort

Thread.Abort

Scheduled Pinned Locked Moved C#
questioncareer
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.
  • T Offline
    T Offline
    thenewbee
    wrote on last edited by
    #1

    Is there any way other than Abort to terminate a thread. How can i Suspend or resume Asynchronous threads

    W L 2 Replies Last reply
    0
    • T thenewbee

      Is there any way other than Abort to terminate a thread. How can i Suspend or resume Asynchronous threads

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      thenewbee wrote:

      Is there any way other than Abort to terminate a thread

      In normal situation the thread execution ends when the method you passed for ThreadStart has finished.

      thenewbee wrote:

      How can i Suspend or resume Asynchronous threads

      You can call Sleep inside the thread. If you need to synchronize separate threads, see for example Join method and lock statement

      The need to optimize rises from a bad design.My articles[^]

      1 Reply Last reply
      0
      • T thenewbee

        Is there any way other than Abort to terminate a thread. How can i Suspend or resume Asynchronous threads

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Hi, IMO the best ever summary of all you ever wanted to know about threads is here.[^] :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Love, happiness and fewer bugs for 2009!


        W 1 Reply Last reply
        0
        • L Luc Pattyn

          Hi, IMO the best ever summary of all you ever wanted to know about threads is here.[^] :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          Love, happiness and fewer bugs for 2009!


          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          That was an excellent link! Immediately added it favourites :)

          The need to optimize rises from a bad design.My articles[^]

          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