2 Replies Latest reply: Jun 11, 2010 1:21 AM by 658018 RSS

    .Static method in multi thread program

    658018
      Dear Sir,

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

      Example

      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
      Kapila