One Windows service and lots of threads, or lots of Windows services and one thread ?

One Windows service and lots of threads, or lots of Windows services and one thread ?

Post by Steve » Tue, 03 Aug 2004 23:18:33


Hi,

Our application needs to run a number of tasks in background - they are
generally functionally unrelated and do different things but essentially
they all run a particular process at (different) intervals as defined by the
user and stored in a scheduling database.

Seems to me I can either create one windows service which looks at the
scheduling database for each process and if needed to be run, kicks the
process off on it's own thread; or I can create an individual service for
each process which simply looks after that particular process and doesn't
need to worry about the other processes.

Are there any good references on how to approach this issue ?

TIA

Steve
 
 
 

1. how to combine and's with or's in a if statement

2. SUMPRODUCT with AND's and OR's?

Hello there!

I have a worksheet that I need to perform a count for every time something
meets certain criteria that I'm looking for. Normally, I would use something
like SUMPRODUCT(--(array1), --(array2), --(array3), . . .) but this only
seems to work if each array is a simple formula AND if each array looks in a
different column each time. (In other words, I cannot seem to do a "greater
than 'x' in column M" AND a "less than 'x' in column M" within the same
SUMPRODUCT function. Here's what I have (and please note that I will
eventually use dynamic headers once I know everything is working):

=SUMPRODUCT(--(Sheet1!$M$2:$M$4064>DATEVALUE("1/1/2006"),--(Sheet1!$M$2:$M$4064<DATEVALUE("3/31/2006"),--(LEFT(Sheet1!$R$2:$R$4064,12)<>"SUPERMAN"),--(LEFT(Sheet1!$R$2:$R$4064,12)<>"MIGHTYMO"))

What I would like it to do is to give a count of each record/line/row that
meets the following criteria:

- Has a date between 1/1/2006 and 3/31/2006 within column "M"; and
- does not have "SUPERMAN" or "MIGHTYMO" in the 12 left-most characters
of column "R"

Is there any other way or formula that can do this? I may need to add more
"arrays" to this formula as well, so the easability of the SUMPRODUCT was
what I tried to use, but it looks like it won't give me the correct
information.

Thank you in advance!

3. Max OR's and AND's in a WHERE clause

4. multi-threaded C# app started by service uses lots of memory ?

5. correction -- found problems multi-threaded C# app started by service uses lots of memory ?

6. one producer thread, one consumer thread: mutex needed?

7. why one stack per thread and one heap for all the threads?

8. one producer thread, one consumer thread: mutex needed?

9. lots of threads and top-window termination

10. GPO best practice-One big one or Lots of little ones?

11. Summing one lot of cells based on another lot

12. Windows 7 fax ands scan

13. After SBS restore Task Scheduler Service kills lots of other services

14. [News] GNU/Linux a Lot More Than One Operating System (Like Mac OS or Windows)

15. C# service, performs lots of things on start, windows doesnt give it enough time!