Multi threading – performance

Posted on January 29, 2008. Filed under: Performance Issues, multi-threading | Tags: , , , , , , , |

Multi threading – synchronization, sharing of resources multi threads access, multiple threads running in a system. One of the thread can modify shared variable while another thread is in the process of updating same shared variable. inheriting from Thread class, runnable interface. Handle multiple clients at the same time. The methods that are used for inter thread communication are wait(), notify() and notifyall(). When a thread terminates its processing, it enters the dead state. A lock can be acquired on a class.
The OS (operating systems) systems task scheduled allocates execution time to multiple tasks.

Synchronized can be defined at Method level or for a block as the statements within {}

Performance concerns of I/O- Threads block on i/o – it enters the waiting state, meanwhile the other threads may execute while the i/o Operation is performed. Changing the multi-threading level improves performances and reliability.

Make a Comment

Make A Comment: ( None so far )

blockquote and a tags work here.

    About

    Technical Blogs – Java J2EE Architecture Development Process, Design Patterns, Strategic Planning, Performance

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS
    • Subscribe in Rojo

    Meta

Liked it here?
Why not try sites on the blogroll...