Step 4a: Counting Semaphore
{"Image DocumentName": "Step 4a: Counting Semaphore", "Image ImageDescription": "Project 2 Assignment. Step 4a: Counting Semaphore. Add counting functionality to semaphores. os345semaphores.c: semSignal, semWait, semTryLock. Replace goto temp; Add a 10 second timer (tics10sec) counting semaphore to the polling routine (os345interrupts.c). #include <time.h> header. Call the C function time(time_t  timer). semSignal the tics10sec semaphore every 10 seconds. Create a reentrant high priority timing task that. blocks (SEM_WAIT) on the 10 second timer semaphore (tics10sec). when activated, outputs a message with the current task number and time and then blocks again. BYU CS 345. Project 2 - Tasking.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}