Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Thread Programming in Java

Share this post!
 Vote this!

Many programs contain code segments that are more or less in dependent of one another, and that may execute more efficiently if the code segments could be overlapped in time.
What is multitasking?
There are two types of multi-tasking programs.
Process based: Executing multiple programs/processes at the same time
Thread based: Single program can have many threads executing at same time, thread has less overhead than a process as threads share the same memory space
A multithreaded program contains two or more parts that can run concurrently. Each part of the program is called thread and each thread defines a separate path of execution. Multithreading is a specialized form of multitasking  more...

0 comments:

Post a Comment