novaking148 Jan 17th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- הגשה יפה ינון, חבל מאוד על התרגיל השני.. :(, שים לב להערות שמחדדות דברים בתרגיל הראשון, זה חשוב להבין ולשלוט בבסיס.
- - An array for the critical sections and philosophers indexes is way more suited for this.
- - Will give you the option of using loops here, something very appropriate for this.
- - We need to close every Handle we use. In this case Thread Handle, something you are missing.
- - You are trying to access the wrong "sticks", you should have took param -1, and param. not param -1 and param +1 :).
- - Also you created a pretty complicated loops for eating, I recommended you give it some more thought and see how you can do that loop better.
RAW Paste Data