1 votes 1 votes (i) What is Load/Store? (ii) Explain fetch-and-set. is there any relation between these two or any basis of comparision? Operating System operating-system semaphore + – Mk Utkarsh asked Dec 30, 2017 Mk Utkarsh 347 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply gauravkc commented Dec 30, 2017 reply Follow Share Load/Store is an architecture which can have 2 kind of instructions load/store - Transfer of data within registers and memory operation - ADD, INCR, etc Few RISC architectures use this. Note that here for an operation, the operands has to be in registers whereas in register memory architecture used by CISC architectures can have their operands in the memory. https://en.wikipedia.org/wiki/Load/store_architecture There is no as such standard instruction called fetch-and-set. It is custom instruction used in a gate question in which fetch-and-set x,y will store value of x in y and set x to 1. It is atomic instruction and hence both are done without any intervention in the execution. 1 votes 1 votes Mk Utkarsh commented Dec 30, 2017 reply Follow Share https://gateoverflow.in/1839/gate2006-61 in this in one comment its mentioned that we cannot use load/store because it is atomic. can you please elobarate what he is trying to convey 0 votes 0 votes gauravkc commented Dec 30, 2017 reply Follow Share In case you are talking about the comment by Tuhin Dutta, He is saying the option "Instead of using fetch-and –set, a pair of normal load/store can be used " is wrong because load and store is not atomic. Fetch and set instruction has multiple operations in it, load value of x store it in y store #1 in x If an instruction is not atomic, it might happen that due to preemption, only 1 or 2 get executed and the rest execute later. Hence, it's not a good option for fetch-and-set. 1 votes 1 votes Mk Utkarsh commented Dec 30, 2017 reply Follow Share ohh thanks :) 0 votes 0 votes Please log in or register to add a comment.