Recent

Author Topic: Thread synchronization  (Read 2899 times)

ThulioGuilherme

  • New member
  • *
  • Posts: 9
Thread synchronization
« on: August 20, 2016, 10:17:40 pm »
Good night,

Is there a way to stop a thread and after some event start it again without using Thread.Resume and Thread.Suspend?

Without being too specific, I need to get a data from a device and pass it to the thread for processing. For avoid busy waiting, I want to stop the thread and start it when I get the data.

Thanks

Cyrax

  • Hero Member
  • *****
  • Posts: 760

ThulioGuilherme

  • New member
  • *
  • Posts: 9
Re: Thread synchronization
« Reply #2 on: August 21, 2016, 12:22:54 am »