开发者

What is memory interlock?

开发者 https://www.devze.com 2023-02-07 03:30 出处:网络
Recently I came across the term \"Memor开发者_开发技巧y interlocked test and set instruction?\". I am not able to understand the term.. Can anyone explain me?It is a basic atomic instruction in other

Recently I came across the term "Memor开发者_开发技巧y interlocked test and set instruction?". I am not able to understand the term.. Can anyone explain me?


It is a basic atomic instruction in other to do many stuff in parallel programming. See this


At the lowest level of the process management, the hardware must provide a memory interlocked test-and-set instruction. The test-and-set instruction must allow two operations to be done on a main-memory location—the reading of the existing value followed by the writing of a new value—without any other processor being able to read or write that memory loca- tion between the two memory operations. Some architectures support more com- plex versions of the test-and-set instruction.

Take from Introduction to Process Management.

0

精彩评论

暂无评论...
验证码 换一张
取 消