APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 6

Subject : Embedded System

Year : 2018

Term : MARCH

Scheme : 2015 Full Time

Course Code : EC 308

Page:54





PDF Text (Beta):

‎DATA‏ ہج ‎ಕ‏ ص
‎SHARED 0‏ 7.8

‎7.8.1 Problem of Sharing Data by Multiple Tasks and Routines

‎The shared data problem can be explained as follows: Assume that several functions (or ISRs OF tasks) ‹
a variable. Let us assume that at an instant the value of that variable operates and during its operations, only
a part of the operation is completed and a part remains incomplete. At that moment, let us assume that there i,
an interrupt. Now, assume that there is another function. It also shares the same variable. The value Of the
variable may differ from the one expected if the earlier operation had been completed. The incomplete Operation
can occur as follows.

‎Suppose a variable is of 128 bits and the processor is of 32 bits. The operations on the variable will be using
four 32-bit ALU operations in order to use the 32-bit ALU of this processor. Atomic operation is one, which

Similar Question Papers