Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
AnswerRe: access a public folder Pin
Dave Kreskowiak11-Oct-05 5:05
mveDave Kreskowiak11-Oct-05 5:05 
AnswerRe: access a public folder Pin
dtaylor73011-Oct-05 8:43
dtaylor73011-Oct-05 8:43 
QuestionSecurity Permissions Pin
akshayswaroop10-Oct-05 21:09
akshayswaroop10-Oct-05 21:09 
AnswerRe: Security Permissions Pin
Dave Kreskowiak11-Oct-05 4:56
mveDave Kreskowiak11-Oct-05 4:56 
Questionwhere these radio buttons come from? Pin
Behazin10-Oct-05 20:17
Behazin10-Oct-05 20:17 
AnswerRe: where these radio buttons come from? Pin
Vasudevan Deepak Kumar10-Oct-05 21:37
Vasudevan Deepak Kumar10-Oct-05 21:37 
QuestionListView problems Pin
Mridang Agarwalla10-Oct-05 19:50
Mridang Agarwalla10-Oct-05 19:50 
AnswerRe: ListView problems Pin
_mubashir10-Oct-05 23:30
_mubashir10-Oct-05 23:30 
QuestionSecurityGroups within groups Pin
dtaylor73010-Oct-05 16:38
dtaylor73010-Oct-05 16:38 
QuestionVideo File Manipulation Pin
jphuphilly10-Oct-05 14:44
jphuphilly10-Oct-05 14:44 
AnswerRe: Video File Manipulation Pin
jphuphilly11-Oct-05 11:24
jphuphilly11-Oct-05 11:24 
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 

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.