/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.stackchief.com
| | www.craigpardey.com
1.4 parsecs away

Travel
| | Spring 3.2 has some very nice features for scheduling tasks. The pure Java way of doing this looks something like private ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); class ScheduledTask implements Runnable { @Override public void run() { System.out.println("Running scheduled task"); } } // Schedule a task every 5 seconds executor.scheduleAtFixedRate(new ScheduledTask(), 1, 5, TimeUnit.SECONDS); // If you don't do this then the JVM won't exit cleanly executor.shutdown(); But now, with the snazzy new Spring scheduling annotations, it can be as simple as this
| | bruceeckel.com
0.8 parsecs away

Travel
| | [AI summary] This blog post discusses the Dining Philosophers problem in Java, explaining how deadlock occurs in concurrent systems and providing a solution by breaking the circular wait condition.
| | www.janwagemakers.be
1.9 parsecs away

Travel
| | For the smartthermostat I'm working on, I was looking for a way to get the outside temperature without placing a real sensor outside.
| | zignar.net
6.2 parsecs away

Travel
| Personal weblog about programming, linux, life, the universe and everything