Add examples with semaphores.