Denso RC5 Specifications Page 430

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 429
14-6
14.2 Semaphore
A semaphore can be used to communicate (connect a signal) among tasks
when multiple tasks are synchronized (synchronized control) or when multiple
tasks are not permitted to operate at the same time (exclusive control).
To use a semaphore, create a semaphore with a CREATESEM command to
obtain a semaphore ID. Then a specific semaphore can be designated among
plural semaphores.
When synchronized control or exclusive control is executed, wait for the task
which sends commands to execute a GIVESEM command after a TAKESEM
command has been executed for the task waiting for the instruction of another
task. If the task sending a command is ready, it executes a GIVESEM
command and permits processing of the task which is waiting for a semaphore
to execute.
One GIVESEM command is valid only for a task waiting for one semaphore.
If multiple tasks have a semaphore with the same semaphore ID, the sequence
of task execution can be selected from among two queuing (execution wait)
systems; first-come sequence and priority sequence.
Page view 429
1 2 ... 425 426 427 428 429 430 431 432 433 434 435 ... 691 692

Comments to this Manuals

No comments