Synchronization problem
Posted: Sat Jun 06, 2020 9:13 am
I have been trying to implement terminal scrolling for a while, and got it. But now, however it page faults after scrolling. The code is here:
The strange thing is, when I put the printf in another thread, it works fine. What is the problem?
Thank you for your help.
Code: Select all
for(int i = 0; i < 73; i++) putchar('\n');
printf("Moved down\n");
Thank you for your help.