retagged by
2,037 views

2 Answers

Best answer
1 votes
1 votes

Answer is option C] processor can't be preempted.

Why?

I assume that you know about Assembly Language. Whatever you see executed on PC, is nothing but instructions. These instructions are predefined and known to processor (ex : Intel P4, core2 Duo, i5, i7 they differ because of instruction set) .

In certain cases to avoid race conditions, atomic(indivisible) operations are preferred. and these indivisible operations are executed in one clock cycle. Hence Even if there is preemption, Operation is finished in that clock cycle only.

edited by
3 votes
3 votes

ANSWER: 3


EXPLANATION

An indivisible or irreducable operation is an atomic operation that is performed entirely or not performed at all.

 Any operation which is indivisible requires processor until it executes entirely. If processor decides to perform some other operation or service some other request like interrupt, the operation will be left to the current state and might never be executed entirely, ever. However, the state of operation might be or might not be consistent, but the operation is anyways reduced and violates the property of indivisible operation.

Race condition is an undesirable situation where two or more process attempts to modify same data at almost same time, which is a concept of multithreading

Answer:

Related questions

2 votes
2 votes
2 answers
1
go_editor asked Aug 11, 2016
2,215 views
What will be the output of the following Unix command?$\text{\$ rm chap0[1-3]}$Remove file $\text{chap0[1-3]}$Remove file $\text{chap01, chap02, chap03}$Remove file $\tex...
2 votes
2 votes
1 answer
2
go_editor asked Aug 11, 2016
3,454 views
In Unix, the command to enable execution permission for file "mylife" by all is_____Chmod ugo $+$ X mylifeChmod a $+$ X mylifeChmod $+$ X mylifeAll of the above
2 votes
2 votes
1 answer
3
go_editor asked Aug 11, 2016
1,588 views
The character set used in Windows $2000$ operating system is$8$ bit ASCIIExtended ASCII$16$ bit UNICODE$12$ bit UNICODE