arungeek
Hacks and Tweaks



Programming

June 20, 2012

Threads in Java with example code

More articles by »
Written by: arunenigma
Tags: ,

 

 

Threads: A simple explanation

Simply put, a thread is a program’s path of execution. Most programs written today run as a single thread, causing problems when multiple events or actions need to occur at the same time. Let’s say, for example, a program is not capable of drawing pictures while reading keystrokes. The program must give its full attention to the keyboard input lacking the ability to handle more than one event at a time. The ideal solution to this problem is the seamless execution of two or more sections of a program at the same time. Threads allows us to do this.

 

 



About the Author

arunenigma
Computer Science Graduate Student @ Case Western Reserve University, Cleveland, USA




 
 

 
elephant_rgb-380x285

Installing Hadoop on Mac OSX Mountain Lion (Step by Step Instructions)

Setting up a single node Apache Hadoop instance on OS X is pretty simple and much the same as on any other Linux/Unix machines, with a small bit of customer configuration. See here for official instructions. This tutorial provi...
by arunenigma
 

 
 
java

Java Program To Multiply Two Matrices

This is a simple java program that teaches you for multiplying two matrix to each other. We are going to make a simple program that will multiply two matrix. Two dimensional array represents the matrix.  Now, make this progra...
by arunenigma
0

 



0 Comments


Be the first to comment!


You must be logged in to post a comment.