CodesJava

Easy learning with example program codes

what is thread in java?


Multithreading:

Multithreading is a type of multitasking based upon threads i.e. context switching is done in-between threads.

Thread:

A thread is a lightweight process. Thread uses process’s execution environment i.e. memory area. Context switch time is less in case of processes because switch is done within the same process’s memory area.

Note: A thread can’t be exist without process, it exist within the process.

Java interview questions on multithreading

Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki