---
# System prepended metadata

title: Assignment 3

---

<!-- Call the assignment `CS450_aXXX_nhn33.pdf` where `XXX` is the assignment number -->

:::info
**CS 450**

Noah Nuebling
:::

# Assignment 3

Program output:

![](https://i.imgur.com/v6Hrj3T.png)

Test script output:

![](https://i.imgur.com/cMAeQGI.png)

## Bonus

I didn't want to calculate all the averages, but I think that the left-handed bakers will have a slight advantage because the cautious bakers give up their left mitten before the right mitten.

## Note

I struggled with debugging for an hour or two. The problem was that I passed the mutex and the condition variable to the baker threads **directly** instead of passing **pointers**.

I think if I had more experience with passing values to threads via structs before doing such a hard assignment that maybe wouldn't have happened?