Tips on effectively using Multithreading - Java

Tips on effectively using Multithreading to improve the efficiency of my programs

In multiple processor systems, a large algorithm will split the process into threads. So that different processors can handle different threads. Multithreading can greatly help the external lookups like JDBC connections, serializing the objects, persisting data in file streams and so on. While the code waits for the data from the database, the CPU would be free and can handle other task. With multiprocessor systems, these tasks are multiplied as there are multiple processors. Thus multiple threads improve the program / application efficiency.
Enumerations vs final variables in java
Enumeration is type safe. Where as final variables are not. Enumeration supports to have a blend of various values. Where as final variables does not support multiple values...
Output to an applet’s window - Java
Yes it is possible for a method other than paint() or update() to output an applet’s window. It is mandatory to obtain a graphics context by invoking getGraphics() method...
What is byte code? - Java
The compiled Java source code is known as byte code. Java compiler generates the byte code...
Post your comment