Multithreading is the ability to
execute multiple threads or tasks concurrently on a single platform. In
Java, Multithreading has emerged as one of the important elements as it
allows a user to perform several tasks in single code or thread. When it
comes to asking questions related to multithreading in Java, an
interviewer should focus on several key points as listed below:
√ To prevent thread interference.
√ To prevent consistency problem.
There are several other concepts in Multithreading in Java which could be used to ask about in an interview such as process based multitasking, thread based multitasking, a life cycle of a thread, thread scheduler etc. but the core knowledge about the points mentioned above is enough to check a candidate's knowledge.
- Multithreading:
- Advantages of Multithreading:
- The difference between preemptive scheduling and time slicing:
- Join() Method:
- Shutdown Hook:
- Synchronization:
√ To prevent thread interference.
√ To prevent consistency problem.
- Static Synchronization:
There are several other concepts in Multithreading in Java which could be used to ask about in an interview such as process based multitasking, thread based multitasking, a life cycle of a thread, thread scheduler etc. but the core knowledge about the points mentioned above is enough to check a candidate's knowledge.
No comments:
Post a Comment