i
Filter interviews by
I applied via LinkedIn and was interviewed in Jul 2024. There were 2 interview rounds.
Mutex is used for exclusive access to a resource by a single thread, while semaphore is used for controlling access to a resource by multiple threads.
Mutex is binary in nature, allowing only one thread to access the resource at a time.
Semaphore can have a count greater than 1, allowing multiple threads to access the resource simultaneously.
Mutex is typically used for protecting critical sections of code.
Semaphore is of...
When volatile and const are used together, the variable is treated as read-only and its value can change unexpectedly.
The const keyword indicates that the variable's value cannot be changed by the program.
The volatile keyword tells the compiler that the variable's value may change at any time, even if it doesn't appear to be modified by the program.
When used together, the variable is treated as read-only by the program...
Brute force can be both good and bad depending on the context and application.
Brute force can be effective for small scale problems or when time is limited.
However, it is inefficient and impractical for large scale problems.
Brute force may also be necessary in certain scenarios where no other efficient solution exists.
For example, brute force can be used in password cracking when other methods fail.
Mutex is used for exclusive access to a resource by a single thread, while semaphore is used for controlling access to a resource by multiple threads.
Mutex is binary in nature, allowing only one thread to access the resource at a time.
Semaphore can have a count greater than 1, allowing multiple threads to access the resource simultaneously.
Mutex is used for protecting critical sections of code, while semaphore is used ...
When volatile and const are used together, the variable is treated as read-only and its value can change unexpectedly.
Using volatile and const together is rare but can be useful for memory-mapped hardware registers.
The volatile keyword tells the compiler that the variable can be changed unexpectedly, while const ensures the variable is read-only.
Example: const volatile int * const ptr = (int *)0x1234; // pointer to a r...
Top trending discussions
I applied via Naukri.com and was interviewed in Aug 2022. There were 2 interview rounds.
30 mins - Coding, 15mins each - 3 MCQ rounds
based on 2 reviews
Rating in categories
Project Engineer
2.7k
salaries
| ₹3.7 L/yr - ₹12.6 L/yr |
Project Associate
419
salaries
| ₹2.8 L/yr - ₹6 L/yr |
Software Developer
174
salaries
| ₹1 L/yr - ₹10 L/yr |
Senior Project Engineer
127
salaries
| ₹6 L/yr - ₹15.5 L/yr |
Software Engineer
78
salaries
| ₹3 L/yr - ₹9.6 L/yr |
National Informatics Centre
TCS
Wipro
Infosys