2 Replies Latest reply on Jun 11, 2010 6:21 AM by 658018

    .Static method in multi thread program

      Dear Sir,

      I'm using multi thread program so I want to know something of static methods how to use in multi threading


      public static int getSum (int a, int b){return a+b:}

      When accessing this method at the same time by several thread How it is behavior ?

      I'm meaning will it switch by another thread ?

      and What is the simple this we need to think while using static method in multi threading program ?

      Best regards