Skip to main content

Posts

Showing posts from May, 2008

Multi-Threading

Day-to-day the technologies are improving rapidly. The execution speed of processors is very fast and they provide the facility to execute multiple tasks at a time. So there are needs to utilize the resources sufficiently. So today it is main aim for developer that they should build the product which would use all the available resources. Multitasking There are two definition of a multitasking based on process and thread: §          Process based: If in any system more than one program are executing concurrently, then it is called multitasking. e.g.    Playing songs in media player while working with MS Word. Here media player is one program (or process) while word processor is different program (or process). §          Thread based : if a single program perform two or more task simultaneously, then it is called multitasking. E.g. in Word Processor printing and formatting simultaneously.   Here word processor is only one program but doing two tasks at a time. Java supports thread-ba