1. Create a new task called DealerCheat that resides in carddeck.c and has a priority higher than...

Question:

1. Create a new task called DealerCheat that resides in carddeck.c and has a priority higher than DealCards. In this task, pull a card from the deck into a static variable that the dealer can use later. It also should lock the CARDDECK resource when it is adjusting the deck. Activate this task after the dealer has dealt the first card in the DealCards task. Run the program and observe the action of the tasks.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: