I am working on a program which logs memory usage on a server. The server has multiple instances running, and the program is logging all.
I am trying to figure out what would be more optimal.
Options:
(Assuming two instances)
1. Single Thread Program, which handles each instance, one by one. Time delay 0.5 seconds.
2. Double Thread, each handling one instance, Time Delay : 1 second.
Any suggestions?