A customer wanted to know what the difference is between
Create
Timer
Queue
Timer
and
Set
Threadpool
Timer
,
and what factors they should consider when choosing between them.
(The customer explained that their immediate need was to create
a periodic timer that fires every five seconds.
It is not critical that the timer fire exactly at five second intervals.)
The
Create
Timer
Queue
Timer
function is a wrapper that calls
Set
Threadpool
Timer
under the covers,
so at the end of the day, you're using
Set
Threadpool
Timer
whether you like it or not.
The
Create
Timer
Queue
Timer
function is just a compatibility function for programs written
to the old thread pool API.
The customer thanked us for the explanation and decided to go with
Set
Threadpool
Timer
.