mardi 24 mai 2022

Which OO design pattern would best fit for a scheduled task?

I was thinking what would be a good design pattern for a certain task that needs to run periodically. I was thinking about a Singleton, so that the task doesn't run more than once at the same time. Would any other design pattern be more adequate to this kind of problem?

Aucun commentaire:

Enregistrer un commentaire