Step 4: Counting Semaphore
{"Image DocumentName": "Step 4: Counting Semaphore", "Image ImageDescription": "P2 - Tasking. Step 4: Counting Semaphore. Implement counting functionality to semaphores. Add a 10 second timer (tics10sec) counting semaphore to the polling routine (pollInterrupts). This can be done by including the <time.h> header and calling the C function time(time_t  timer). semSignal the tics10sec semaphore every 10 seconds. Create a reentrant high priority task that blocks (SEM_WAIT) on the 10 second timer semaphore (tics10sec). When activated, output a message with the current task number and time and then block again. BYU CS 345. Project 2 - Tasking.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}