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. .NET (Core and Framework)
  4. How to realize thread management of my own

How to realize thread management of my own

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorialquestion
2 Posts 1 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.
  • B Offline
    B Offline
    Bob_Sun
    wrote on last edited by
    #1

    In my app, many threads are created by BeingInvoke now. As all these threads are managed by ThreadPool, I can not get info about these backgroud threads. So I decided to create a thread manager of my own. In this case all the thread will not be run backgroud. What should I be careful with? Thank you for your advice!

    B 1 Reply Last reply
    0
    • B Bob_Sun

      In my app, many threads are created by BeingInvoke now. As all these threads are managed by ThreadPool, I can not get info about these backgroud threads. So I decided to create a thread manager of my own. In this case all the thread will not be run backgroud. What should I be careful with? Thank you for your advice!

      B Offline
      B Offline
      Bob_Sun
      wrote on last edited by
      #2

      I have read several articals and started to write my own code. As I want to keep in track with all the handlers of my threads so as to Abort them when necessary. How to inform my thread manager to remove the handler form thread queue before a thread is sure to finish. I can pass a delegate to every thread as that the thread can call it just before its end. Are there any other better methods? Thank 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