- Timestamp:
-
02/18/14 17:13:52 (10 years ago)
- Author:
-
Sh
- Comment:
-
/* SMP Locks */ http://git.rtems.org/rtems/commit/?id=0344ce0385fb2ff4f55d4154ae38b438c2168340
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v35
|
v36
|
|
221 | 221 | |
222 | 222 | |
223 | | The implementation is now CPU architecture specific. |
| 223 | SMP locks are implemented as a ticket lock using CPU architecture specific atomic operations. |
224 | 224 | == Future Directions == |
225 | 225 | |
226 | 226 | |
227 | | * Use a fair lock on SPARC and x86, e.g. a ticket lock like on ARM and PowerPC. |
228 | 227 | * Use a local context to be able to use scalable lock implementations like the Mellor-Crummey and Scotty (MCS) queue-based locks. |
229 | 228 | * Introduce read-write locks. Use phase-fair read-write lock implementation. This can be used for example by the time management code. The system time may be read frequently, but updates are infrequent. |
… |
… |
|
1577 | 1576 | orthogonal to the blocking states, e.g. DORMANT, SUSPENDED etc.: |
1578 | 1577 | |
1579 | | ; PROTECTED : The thread is protected from immediate restart, delete and suspend actions. |
| 1578 | ; PROTECTED : The thread is protected from immediate restart, delete and suspend actions. Can be controlled by pthread_setcancelsta |