How to make calling a Method as a background process in java

后端 未结 6 650
无人共我
无人共我 2021-01-16 06:50

In my application , I have this logic when the user logins , it will call the below method , with all the symbols the user owns .

public void sendSymbol(Stri         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-16 07:37

    You need to spawn a separate thread to perform this activity concurrently. Although this will not be a separate process, but you can keep performing other task while you complete sending symbols.

提交回复
热议问题