[-] resuming to the printer
by tzchory - Wednesday, 15 June 2016 16:30:56
if the printing frequency is 16(the length and width are 4,so we get 16 coroutines for each cell),do we need to print after we finished the first part of the computation for each coroutine(we resumed only once for each coroutine) or after the second part of the computation where we update the state(we resumed twice for each coroutine,and the state is now updated)?
[-] Re: resuming to the printer
by sadetsky - Thursday, 16 June 2016 15:58:02
you should count number of resumes that cells do
when this number is equal to K that you get as a command line argument, then you print.

in addition, you print one more time at the end of the program
[-] Re: resuming to the printer
by fatahov - Saturday, 18 June 2016 15:32:24
היי, רציתי לשאול גם על תדירות ההדפסה
לא בטוחה שהבנתי את התשובה שלך לגמרי
תאמרי לי בבקשה אם הבנתי נכון:
אם תדירות ההדפסה היא 15 ויש לי סך הכל 30 תאים
אז אני אמורה להדפיס אחרי 15 פעמים מתחילת ההרצה שעשיתי
resume
ל 15 התאים הראשונים שבחנתי שבודקים את המצב שלהם (עוד לפני העדכון)
ואז יודפס לי בעצם המצב ההתחלתי שקיבלתי כי עדיין לא הייה שינוי?
אם זה אכן ככה ,בכדי שיודפסו לי לוחות רק אחרי שיש שינוי בלוח
אני צריכה שתדירות ההדפסה תהיה כגודל התאים כפול 2, נכון?
Re: resuming to the printer
by sadetsky - Sunday, 19 June 2016 00:31:41
כן, נכון
[-] Re: resuming to the printer
by ofirhau - Sunday, 19 June 2016 01:00:05
"in addition, you print one more time at the end of the program" :

Why do we need to do this?
There is no instruction of doing this in the assignment description- you just wrote to print after every k resumes of the cells.

We can't handle changes like this few days before submission...
Is it ok to print (only) after each k resumes of the cells like written in the assignment (without extra printing in the end)?


Re: resuming to the printer
by sadetsky - Sunday, 19 June 2016 22:45:00
I quote the WRITTEN instructions of the assignment:

"...The scheduler returns to the main program when the last generation is reached, after giving one last "time slice" to the printer..."

Please read the assignment instructions carefully before you ask.