Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
QuestionGet Previous Window Handle? Pin
Kasdoffe10-Oct-05 11:24
Kasdoffe10-Oct-05 11:24 
AnswerRe: Get Previous Window Handle? Pin
S. Senthil Kumar10-Oct-05 15:25
S. Senthil Kumar10-Oct-05 15:25 
GeneralRe: Get Previous Window Handle? Pin
Kasdoffe11-Oct-05 2:16
Kasdoffe11-Oct-05 2:16 
GeneralRe: Get Previous Window Handle? Pin
Dave Kreskowiak11-Oct-05 4:47
mveDave Kreskowiak11-Oct-05 4:47 
GeneralRe: Get Previous Window Handle? Pin
12-Oct-05 3:08
suss12-Oct-05 3:08 
GeneralRe: Get Previous Window Handle? Pin
Dave Kreskowiak12-Oct-05 11:51
mveDave Kreskowiak12-Oct-05 11:51 
GeneralRe: Get Previous Window Handle? Pin
Kasdoffe13-Oct-05 5:47
Kasdoffe13-Oct-05 5:47 
QuestionPerformance of Win service process with multiple services Pin
Eugenio Lysei Junior10-Oct-05 10:12
Eugenio Lysei Junior10-Oct-05 10:12 
Hi,
the main question is: (see details and more detailed questions below)
"Is there any big performance difference on implementing
two services on the same service process instead of creating
two separate Windows services (each one on its own process)?"

Details:
I developed two Windows services that needed to share data.
One should be almost real-time (like a performance metrics
monitor). The other will transfer such captured data over
Web services, can be slow and should use data persistence.

Implementing separated services, I could do it with
MMF + P/Invoke, or use something elegant solution,
such as Natty Gur's (DevGlobalCache), found here at CP.

Alternatively, I could implement both services inside same
Windows service process. In such case I could leave MMF P/Invoke
(since it´s not native in C# == I´m using VS.NET 2003).
Though, I don´t know whether such alternative solution would
be feasible, due to the following doubts:

1. If a Windows service process has two or more services,
does Windows treat each one as a thread, or *only* the
entire proccess as a thread? If the second option is the
case, so both services cannot live on the same process
with no impact on performance.

2. On the other hand, if Windows doesn´t treat them as
separate threads, probably a Mutex won´t be necessary if
both as on the same process.

Any comments on this would be very appreciated.

Thanks in advance.



Eugenio
GeneralRe: Performance of Win service process with multiple services Pin
Andy Brummer10-Oct-05 11:09
sitebuilderAndy Brummer10-Oct-05 11:09 
QuestionDisplay a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom10-Oct-05 10:09
miah alom10-Oct-05 10:09 
AnswerRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
XRaheemX10-Oct-05 10:12
XRaheemX10-Oct-05 10:12 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom10-Oct-05 10:15
miah alom10-Oct-05 10:15 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
XRaheemX10-Oct-05 11:30
XRaheemX10-Oct-05 11:30 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom11-Oct-05 3:30
miah alom11-Oct-05 3:30 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
XRaheemX11-Oct-05 3:40
XRaheemX11-Oct-05 3:40 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom11-Oct-05 3:46
miah alom11-Oct-05 3:46 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
XRaheemX11-Oct-05 3:51
XRaheemX11-Oct-05 3:51 
AnswerRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
Andy Moore10-Oct-05 16:01
Andy Moore10-Oct-05 16:01 
GeneralRe: Display a image on a Button with button.FlatStyle = FlatStyle.System Pin
miah alom11-Oct-05 3:29
miah alom11-Oct-05 3:29 
QuestionSimple Data Binding Pin
budidharma10-Oct-05 8:51
budidharma10-Oct-05 8:51 
AnswerRe: Simple Data Binding Pin
XRaheemX10-Oct-05 8:57
XRaheemX10-Oct-05 8:57 
AnswerRe: Simple Data Binding Pin
S. Senthil Kumar10-Oct-05 15:27
S. Senthil Kumar10-Oct-05 15:27 
QuestionDynamic DropDownList C# ASP.NET Pin
TheMajorRager10-Oct-05 8:36
TheMajorRager10-Oct-05 8:36 
AnswerRe: Dynamic DropDownList C# ASP.NET Pin
Christian Graus10-Oct-05 8:39
protectorChristian Graus10-Oct-05 8:39 
GeneralRe: Dynamic DropDownList C# ASP.NET Pin
XRaheemX10-Oct-05 10:10
XRaheemX10-Oct-05 10:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.