Discussion:
Print statements
(too old to reply)
cs412041
2005-04-07 16:57:09 UTC
Permalink
If I have a lot of print statements in my code, the program hangs at
random points. For example I can call rec.exe 1000 fine without print
statements but with print statements the program just hangs in the
middle of a print statement. Any ideas?

--Rohit
cs412050
2005-04-08 05:55:52 UTC
Permalink
I have the same problem.
I can't work on this anymore because of lack of sleep.
The number of character that I can print is very disappointingly small,
and the number is inconsistent.

It seems that somewhere I need to put Disable_Interrupts();
But, I can't determine where to put it.
If I am on the wrong direction, can anybody correct my ignorance?

After a little bit of sleep, I will continue to think this problem.
Post by cs412041
If I have a lot of print statements in my code, the program hangs at
random points. For example I can call rec.exe 1000 fine without print
statements but with print statements the program just hangs in the
middle of a print statement. Any ideas?
--Rohit
Raymond Chung
2005-04-09 19:21:06 UTC
Permalink
It is fixed by changing ready queue array to single variable.
In this newsgroup, there will be a thread about ready queue array.
Fixing that will make this trouble away.

Continue reading on narkive:
Loading...