Subscribe to DSC Newsletter

All Blog Posts Tagged 'threads' (2)

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

Common Coding Situations in Java

 This blog contains some snippets of code that I tend to use in Java.  I acknowledge that somebody else writing this blog might include different code.  Except for a short course at Sun Educational Services, most of my Java programming skills are self-taught.  I’m unsure if people with formal backgrounds in computer science might have different styles and conventions.  Mine have been shaped primarily by my needs.

 

Creating a Graphical User Interface…

Continue

Added by Don Philip Faithful on November 6, 2016 at 8:00am — 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