Languages-C & C Plus Plus [Hexaware Placement]: Sample Questions 1 - 2 of 2

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 1

C & C Plus Plus
Edit

Write in Short

Short Answer▾

Why semaphore is used?

Explanation

In programming, semaphores are a technique for coordinating or synchronizing activities in which multiple processes compete for the same operating system resources. A semaphore is a value in a designated place in operating system (or kernel) storage that each process can check and then change. Depending on the value that is found, the process can use the resource or will find that it is already in use and must wait for some period before trying again. Semaphores can be binary (0 or 1) or can have additional values. Typically, a process using semaphores checks the value and then, if it using the resource, changes the value to reflect this so that subsequent semaphore users will know to wait.

Question 2

C & C Plus Plus
Edit

Write in Short

Short Answer▾

What is RISC?

Explanation

(Reduced Instruction Set Computing) is a type of microprocessor that recognizes a relatively limited number of instructions. One advantage of reduced instruction set computers is that they can execute their instructions very fast because the instructions are so simple. Another, perhaps more important advantage, is that RISC require fewer transistors, which makes them cheaper to design and produce. Since the emergence of RISC computers, conventional computers have been referred to as CISC (Complex Instruction Set Computing) .

Developed by: