retagged by
2,572 views

2 Answers

Best answer
3 votes
3 votes

TSL is     deadlock free            True it is implemented for deadlock problem 

TSL solution method is starvation  free. False If there are multiple processes trying to get into their critical sections, there is no guarantee of what order they will enter, and any one process could have the bad luck to wait forever until they got their turn in the critical section. ( Since there is no guarantee as to the relative rates of the processes, a very fast process could theoretically release the lock, whip through their remainder section, and re-lock the lock before a slower process got a chance. As more and more processes are involved vying for the same resource, the odds of a slow process getting locked out completely increase. )

TSL solution method process enter into fcfs order. false by the same explanation

selected by
0 votes
0 votes
TSL method solution is deadlock free - True( because in TSL there might be a spin lock not dead lock).

TSL method solution is Starvation free - false (because it does not support bounded waiting)

TSL  solution method enters in fcfs order - false (because it depends on what type of scheduling you are using if you are using round robin then this might be true but in case if you are using any priority based scheduling then this condition might false)

Related questions

1.4k
views
0 answers
0 votes
garvit_vijai asked Sep 20, 2018
1,438 views
In case of TSL we are aware of the following instructions: 1. TSL LOCK, Ro 2. CMP Ro, #0 3. JNZ step1 Now, the initial value of ... this way, Po and P1 both will get stuck...right? and so is there a chance of deadlock?
2.1k
views
3 answers
0 votes
ajit asked Sep 12, 2015
2,056 views
In process synchronization what is true about disabling interrupts and TSL?1)Disabling interrupt is applicable only for single processor system2)TSL is applicable ... system3)Both could be used in multiprocessor system4)none of the above
1.0k
views
1 answers
0 votes
Babi ghosh asked Aug 23, 2018
1,028 views
Fetch_And_Add(X,i) is an atomic Read- Modify-Write instruction that reads the value of memory location X, increments it by the value i, and returns the old value ... as could anyone give a proper explanation as to why option B is correct??
1.2k
views
1 answers
0 votes
sh!va asked Mar 15, 2017
1,242 views
If no resource is free then:a) Both Spin lock and mutexes will keep on spinning on the blocked variableb) Both Spin lock and mutexes will go to ... blocked variable while Spin lock will go to sleep and check the variable periodically.