Click here to Skip to main content
15,911,848 members
Home / Discussions / C#
   

C#

 
QuestionResulation Pin
MHASSANF25-Aug-06 23:26
MHASSANF25-Aug-06 23:26 
AnswerRe: Resulation Pin
Nader Elshehabi26-Aug-06 2:50
Nader Elshehabi26-Aug-06 2:50 
QuestionHow can I show each page sum colon in Crystal Reports? Pin
ersinsivaz25-Aug-06 23:12
ersinsivaz25-Aug-06 23:12 
QuestionClosing a form - Tooltips Pin
Glen Harvy25-Aug-06 22:54
Glen Harvy25-Aug-06 22:54 
AnswerRe: Closing a form - Tooltips Pin
Filip van der Meeren25-Aug-06 23:14
Filip van der Meeren25-Aug-06 23:14 
GeneralRe: Closing a form - Tooltips Pin
Glen Harvy25-Aug-06 23:29
Glen Harvy25-Aug-06 23:29 
GeneralRe: Closing a form - Tooltips Pin
Filip van der Meeren26-Aug-06 1:07
Filip van der Meeren26-Aug-06 1:07 
QuestionMultiThreading - Synchronization issues Pin
madhusri25-Aug-06 21:13
madhusri25-Aug-06 21:13 
Hi,

My scenario is as follows:

I spawn mukltiple threads simultaneously and all threads invoke functions simultaneously. These functions are in a single threaded application. What happens if one thread invokes the function and before it completes its processing, another thread also invoke it? Will both the threads execute the function simultaneously or will one thread complete its operation and only then the other will start processing?.

In my case I want one specific function to be executed synchronously. Only one thread should execute it at a time because it makes use of certain resources whic can be used by only one thread at a time. How to lock the entire method?

Can
lock(this)
{
//Code goes here...
}

be used in this scenario.

It would be better if any of you are able to suggest a solution for this.


Thanks and Regards
Madhu

AnswerRe: MultiThreading - Synchronization issues Pin
Nader Elshehabi27-Aug-06 11:07
Nader Elshehabi27-Aug-06 11:07 
QuestionEnumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist25-Aug-06 21:06
giddy_guitarist25-Aug-06 21:06 
AnswerRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
Nader Elshehabi26-Aug-06 3:08
Nader Elshehabi26-Aug-06 3:08 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist26-Aug-06 8:11
giddy_guitarist26-Aug-06 8:11 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist31-Aug-06 9:00
giddy_guitarist31-Aug-06 9:00 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
Nader Elshehabi31-Aug-06 10:29
Nader Elshehabi31-Aug-06 10:29 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist31-Aug-06 19:46
giddy_guitarist31-Aug-06 19:46 
AnswerRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
Nader Elshehabi1-Sep-06 5:05
Nader Elshehabi1-Sep-06 5:05 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist5-Sep-06 8:19
giddy_guitarist5-Sep-06 8:19 
QuestionSending and Recieving Fax using ASP.Net, C# Pin
TestPager25-Aug-06 19:10
TestPager25-Aug-06 19:10 
QuestionHow to set the visibility of label item in StatusToolStrip control? Pin
rasper25-Aug-06 18:01
rasper25-Aug-06 18:01 
AnswerRe: How to set the visibility of label item in StatusToolStrip control? Pin
Nader Elshehabi26-Aug-06 3:17
Nader Elshehabi26-Aug-06 3:17 
Questionquestion about Timer Tick event Pin
likefood25-Aug-06 12:30
likefood25-Aug-06 12:30 
AnswerRe: question about Timer Tick event Pin
Nader Elshehabi25-Aug-06 14:28
Nader Elshehabi25-Aug-06 14:28 
GeneralRe: question about Timer Tick event Pin
likefood25-Aug-06 14:47
likefood25-Aug-06 14:47 
GeneralRe: question about Timer Tick event Pin
Subby Dev25-Aug-06 14:39
Subby Dev25-Aug-06 14:39 
GeneralRe: question about Timer Tick event [modified] Pin
likefood25-Aug-06 14:48
likefood25-Aug-06 14:48 

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.