Skip to content

Tag: multithreading

How to run a thread for one hour in java

I will be receiving an attribute and I want to run a job for that attribute for 1 hour – monitoring and logging things related to that attribute. After that one hour, the job will stop. Is there a way to run a task, thread or a job for one hour given a id for that thread? As far as