Link to home
Start Free TrialLog in
Avatar of tantoush
tantoush

asked on

the coldfire mutually exclusive

I want to know that ideally there is a need for mutually exclusive access to the console and how this could be achived using the BSET instruction as the basis of a binary semaphore.
Avatar of grg99
grg99

First you need a good algorithm.   I hope your textbook has one, as it is trickierr than it sounds!   Much trickier.  The simplest solutions have race problems.

Please show us that you have an algorithm, then we can help in writing it in asm.  If your book doesnt have an algorithm, please try using google or ask around.

Avatar of tantoush

ASKER

I am sorry but realy I dont know what you min by good algorithm.
Whenever you have two or more processes trying to get the use of a resource, you need some reliable method for interlocking their access.  Some method involving flags, counters, or semaphores perhaps.

I whant to know more a bout BSET instruction as the basis of a binary semaphore.
if you know any web bage have some information.
ASKER CERTIFIED SOLUTION
Avatar of grg99
grg99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial