Subscribe to DSC Newsletter

All Blog Posts Tagged 'threadsafety' (1)

Running Calculations on Separate Threads

In order to prevent my programs from freezing up while running long calculations, I generally run the calculations on separate threads.  In Java, this process can be accomplished by separating the GUI from processing.  In the code below, a thread for an instance of MyProcessing would be invoked using start(): e.g. “(new MyProcessing()).start();” would run indefinitely until T is made null.  T can be made null by calling stop() or by directly making T null.  Often when the GUI is closing, I…

Continue

Added by Don Philip Faithful on March 25, 2017 at 9:42am — No Comments

Monthly Archives

2019

2018

2017

2016

2015

2014

2013

2012

2011

1999

Videos

  • Add Videos
  • View All

© 2019   Data Science Central ®   Powered by

Badges  |  Report an Issue  |  Privacy Policy  |  Terms of Service