Filter interviews by
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Multithreading is the ability of a CPU to execute multiple threads concurrently, allowing for parallel processing.
Multithreading allows for better utilization of CPU resources by running multiple threads simultaneously.
Threads share the same memory space, allowing for efficient communication and data sharing.
Examples of multithreading include running multiple tasks in a web server concurrently or processing data in par
Reentrant lock is a synchronization primitive that allows a thread to acquire the same lock multiple times.
Allows a thread to acquire the same lock multiple times
Prevents deadlock by allowing a thread to re-enter the lock it already holds
Useful in situations where a method needs to call another method that also requires the same lock
Example: Java's ReentrantLock class
ConcurrentHashMap allows multiple threads to read/write concurrently, while HashMap is not thread-safe.
ConcurrentHashMap allows multiple threads to read/write concurrently without blocking each other.
HashMap is not thread-safe and can lead to data corruption if accessed by multiple threads simultaneously.
ConcurrentHashMap achieves thread-safety by using internal synchronization mechanisms like locks or CAS operations.
H...
Software Engineer
84
salaries
| ₹2.5 L/yr - ₹8.5 L/yr |
Desktop Support Engineer
66
salaries
| ₹1.4 L/yr - ₹1.7 L/yr |
Senior Software Engineer
53
salaries
| ₹5.6 L/yr - ₹17.2 L/yr |
Softwaretest Engineer
22
salaries
| ₹3.2 L/yr - ₹4.8 L/yr |
Software Trainee
16
salaries
| ₹2 L/yr - ₹4.5 L/yr |
TCS
Infosys
Wipro
HCLTech