at the moment i have a task and inside the task i have a timer that will stop the first task and do this second task, once the seond task finish it will continue doing the first task again.this timer is every 5 seconds.
the problem i'm having is the second task is consuming alots of time. is there a way to allow these 2 task running in the same time?
task 1 is a Swing program, while task 2 basically saving image pick by user in task 1.
can you give me some code
thank you so much