davidw88
asked on
Java/C: Code running longer and longer
Hi experts,
I am puzzled with this so I post to get explainations. I have Java and C code on Linux machine. I found that the Java code cost more and more time. It is the same for the C code. I wrote this C code about one month ago and did not touch it since then. Today I run it and found the running time got doubled. I used clock() to measure time.
How can this code run with longer time? or why do they become slow?
Thanks for any replies.
I am puzzled with this so I post to get explainations. I have Java and C code on Linux machine. I found that the Java code cost more and more time. It is the same for the C code. I wrote this C code about one month ago and did not touch it since then. Today I run it and found the running time got doubled. I used clock() to measure time.
How can this code run with longer time? or why do they become slow?
Thanks for any replies.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Check whether any other processes are running other than java and c. May be because of that reason these programs are taking moretime.
ASKER
Hi experts,
Thanks so much for all your replies. I called our administrator to check with me together about the processes. We found that another file writing process took so much resources that it slowed my code!!
Objects, Spoxox and Ozo are correct so I split the points among them.
Thanks also go to mbodewes and melchkishore! (melchkishore's answer follows Objects' so I do not assign points to him.)
Thanks so much for all your replies. I called our administrator to check with me together about the processes. We found that another file writing process took so much resources that it slowed my code!!
Objects, Spoxox and Ozo are correct so I split the points among them.
Thanks also go to mbodewes and melchkishore! (melchkishore's answer follows Objects' so I do not assign points to him.)
I cannot see from here if this would fix your problems, try the other possible solutions as well. But at least this solution is one that might work (given the absolute minimum of data you've supplied to us).