• Java Multithreading

    Java Multithreading

    Java Multithreading is a conceptual programming paradigm where a program (process) is divided into two or more subprograms (processes), which can be implemented at the same time in parallel. For example, one subprogram can display an animation on the screen while another may build the next animation to be displayed. This is something similar to dividing a task into subtasks and assigning them to different people for execution independently and simultaneously.

    A thread is similar to a program that has a single flow of control. It has a beginning, a body, and an end, and executes commands sequentially. In fact all main programs can be called single-threaded programs.

    The main thread is actually the main method module, which is designed to create and start the other three threads, namely A, B, and C.

    Once initiated by the main thread, the threads A, B, and C run concurrently and share the resources jointly. The ability of a language to support multithreads is referred to as concurrency. Since threads in Java are subprograms of a main applications program and share the same memory space, they are known as lightweight threads or lightweight processes.

    Threads are extensively used in Java-Enabled browsers such as HotJava. These browsers can download a file to the local computer, display a Web Page in the window, output another Web page to a printer and so on.

    Appreciate my work :Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrDigg thisShare on YummlyShare on VKFlattr the authorBuffer this page

Leave a Reply

Your email address will not be published. Required fields are marked *