title: Logging from two simultaneous processes
body: <p>I have written an application in java and deployed it on a unix server.
  I have implemented the logging in my app and the logs are generated in a file say <code>X.log.txt</code></p>
  
  <p>If I run multiple instances of my jar using different users or single user different sessions: <br/>Is there a chance that my logs in <code>X.log.txt</code> get mixed?
  <br/> or it will be in FCFS manner??</p>
  
  <hr>
  
  <p>Example: let P1 and P2 be two processes that are calling the java app and are generating logs.</p>
  
  <p>P1 and P2 ARE writing their individual logs at the same time to <code>X.log.txt</code>.  Is this statement true?  Or is it entirely based on the CPU scheduling algorithm (FCFS, SJF, etc.)?</p>
  
  <p>Even if i don't use the timestamping Its working fine for me.
  When I am executing them the logs are generated one after the other , Means For a particular instance all the logs are written into the file and then for the next instance. My question is still open is it all based on the way our processor is written to handle jobs or is it some thing else ? </p>