Kiss Kangaroo APP Development System

  Kiss Kangaroo System Development "Von Health" [191﹎5743﹍0738] [micro] kiss the kangaroo or electrical system development APP, APP development system Kangaroo kiss, kiss the kangaroo APP development, software customization kiss the kangaroo mode, kiss Kangaroo build similar systems, software development Kangaroo kiss, kiss the kangaroo system source code development, system development similar to kangaroos kiss, kiss full of imitation Kangaroo app built.

  Tips: The company is a software development company, not its platform operator also does not matter if you're a player, the following article for reference only and are interested in learning can consult.

  Examples: a thread after set sleep2000ms, see if you can take the opportunity to b thread set, resulting in a non-thread-safe

  HasSelfPrivateNum.java:

  package service;

  public class HasSelfPrivateNum{

  private int num=0;

  public void addI(String username){

  try{

  if(username.equals("a")){

  a = 100;

  System.out.println("a set over!");

  Thread.sleep(2000);

  }else{

  a = 200;

  System.out.println("b set over!");

  }

  System.out.println(username+"num="+num);

  }catch(InterruptedException e){

  e.printStackTrace ();

Guess you like

Origin www.cnblogs.com/010plp/p/11868503.html