Exec

= Standard types =

Other types
= Memory allocation =

Freeing memory
= Messages and ports =

Create message port
There are two ways to create message port: create it manually or use CreateMsgPort call.

If you want to create it manually you can use following code:

Delete message port
If you created message port using CreageMsgPort:

If it was created manually:

Example
= Semaphores =

Semaphores are used to protect critical sections.

AttemptSemaphore
Attempt to get an exclusive access to the semaphore.

ObtainSemaphore
Obtain an exclusive access to the semaphore. This call blocks if semaphore is not available.

ObtainSemaphoreShared
Obtain a shared access to the semaphore. This call blocks if semaphore is not available.

ReleaseSemaphore
Release shared or exclusive access to the semaphore.