Changeset d7665823 in rtems for cpukit/sapi

Timestamp:
06/24/15 13:43:19 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
e709aa85
Parents:
e2735012
git-author:
Sebastian Huber <sebastian.huber@…> (06/24/15 13:43:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/23/15 06:01:13)
Message:

score: Introduce Thread_queue_Heads

Move the storage for the thread queue heads to the threads. Each thread
provides a set of thread queue heads allocated from a dedicated memory
pool. In case a thread blocks on a queue, then it lends its heads to
the queue. In case the thread unblocks, then it takes a free set of
threads from the queue. Since a thread can block on at most one queue
this works. This mechanism is used in FreeBSD. The motivation for this
change is to reduce the memory demands of the synchronization objects.
On a 32-bit uni-processor configuration the Thread_queue_Control size is
now 8 bytes, compared to 64 bytes in RTEMS 4.10 (other changes reduced
the size as well).

(No files)

Note: See TracChangeset for help on using the changeset viewer.