retagged by
408 views

1 Answer

4 votes
4 votes

Yes , there is hardware involved . See the thing is the hardware solution (support) here (or anywhere) means that the underlying hardware is providing some instructions / registers / pins / techniques to implement the solution. Lets for example the Test and Set Lock or the test-and-set instruction is an instruction used to write 1 (set) to a memory location and return its old value as a single atomic (i.e., non-interruptible) operation.

Now your question where is the hardware involved?

It's involved right here single atomic (i.e., non-interruptible) operation  this thing is ensured by hardware . For a vague picture what's happening down there , it is the system that is providing us a  TSL instruction with such property . You cannot just implement the solution in just any hardware . Unlike software solution which does not depend on instruction set or underlying hardware. 

Hopes that's clear your doubt

Related questions

2 votes
2 votes
0 answers
1
shraddha priya asked Jun 9, 2017
367 views
Is the following instruction a no operation instruction? If yes, how? As R0 will now have 2*R0 as value so can it be really considered as NOP even if the value of registe...
0 votes
0 votes
1 answer
3
roopkathaaa asked Aug 25, 2023
1,184 views
In a certain application, the initial value of a counting semaphore s is 10. The following operations were completed on the semaphore in the given order 5P, 20P, 2V, 18P,...