Benefits of Multithreaded programming
- In Multi-Threaded programming, multiple threads are executing concurrently that improves the performance because CPU is not idle incase some thread is waiting to get some resources.
- Multiple threads share the heap memory, so it’s good to create multiple threads to execute some task rather than creating multiple processes.
Example : Servlets are better in performance than CGI because Servlet support multi-threading but CGI doesn’t.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.