What should i use---Job scheduler or Thread
I am trying to call a function whose task is independent of all other tasks.So i decided to use the thread....BUTTTTTTTT.....now i want to schedule this task after a particular interval of time...so i think that the job scheduler in java will help......but then the purpose for which i was using the thread is lost ...as this scheduled task will take the particular memory cycle...
I am confused/......
please tell me the better approach or a mid path to follow so that both my conditions are satisfied
|