Click here to Skip to main content
15,914,010 members
Home / Discussions / C#
   

C#

 
QuestionMapping of Excel sheet into Access Table by using C# code Pin
vivekdeshpande22-Feb-06 18:46
vivekdeshpande22-Feb-06 18:46 
AnswerRe: Mapping of Excel sheet into Access Table by using C# code Pin
Acheive_it22-Feb-06 23:29
Acheive_it22-Feb-06 23:29 
AnswerRe: Mapping of Excel sheet into Access Table by using C# code Pin
Acheive_it23-Feb-06 18:01
Acheive_it23-Feb-06 18:01 
QuestionMethod Lock Pin
JacquesDP22-Feb-06 18:41
JacquesDP22-Feb-06 18:41 
AnswerRe: Method Lock Pin
emran83422-Feb-06 19:25
emran83422-Feb-06 19:25 
GeneralRe: Method Lock Pin
JacquesDP22-Feb-06 19:33
JacquesDP22-Feb-06 19:33 
GeneralRe: Method Lock Pin
emran83422-Feb-06 19:43
emran83422-Feb-06 19:43 
GeneralRe: Method Lock Pin
JacquesDP22-Feb-06 20:11
JacquesDP22-Feb-06 20:11 
lock(x)
{
DoSomething();
}

What the lock statement does is wrap an object known as a mutual exclusion lock, or mutex, around the variable in the round brackets. the mutex will remain in place while the compound statement attached to the lock keyword is executed. While the mutex is wrapped around a variable, no other thread is permitted access to that variable. If the next thread to gain to gain the time slice attempts to access the variable x, acceess to the variable will be denied. Instead, Windows will simply put the thread to sleep until the mutex has been released.

The above was quoted from "Professional C# 3rd Edition". They also say you must just be aware of deadlocks

Hope that helps you, works perfectly for what I need.
GeneralRe: Method Lock Pin
J4amieC22-Feb-06 21:34
J4amieC22-Feb-06 21:34 
QuestionCopyright Problem ? Using Gifs and Images from Web in my Application Pin
emran83422-Feb-06 18:33
emran83422-Feb-06 18:33 
AnswerRe: Copyright Problem ? Using Gifs and Images from Web in my Application Pin
mav.northwind22-Feb-06 20:01
mav.northwind22-Feb-06 20:01 
GeneralRe: Copyright Problem ? Using Gifs and Images from Web in my Application Pin
lmoelleb22-Feb-06 21:08
lmoelleb22-Feb-06 21:08 
AnswerRe: Copyright Problem ? Using Gifs and Images from Web in my Application Pin
Colin Angus Mackay22-Feb-06 22:52
Colin Angus Mackay22-Feb-06 22:52 
GeneralRe: Copyright Problem ? Using Gifs and Images from Web in my Application Pin
emran83423-Feb-06 0:50
emran83423-Feb-06 0:50 
QuestionC#.Net Pin
Ashwani_kumar22-Feb-06 17:31
Ashwani_kumar22-Feb-06 17:31 
AnswerRe: C#.Net Pin
George L. Jackson22-Feb-06 17:39
George L. Jackson22-Feb-06 17:39 
GeneralRe: C#.Net Pin
Ashwani_kumar22-Feb-06 17:41
Ashwani_kumar22-Feb-06 17:41 
GeneralRe: C#.Net Pin
George L. Jackson22-Feb-06 17:48
George L. Jackson22-Feb-06 17:48 
GeneralRe: C#.Net Pin
emran83422-Feb-06 18:19
emran83422-Feb-06 18:19 
GeneralRe: C#.Net Pin
Praveen Nayak23-Feb-06 21:20
Praveen Nayak23-Feb-06 21:20 
GeneralRe: C#.Net Pin
emran83423-Feb-06 23:27
emran83423-Feb-06 23:27 
GeneralRe: C#.Net Pin
Praveen Nayak24-Feb-06 0:09
Praveen Nayak24-Feb-06 0:09 
GeneralTurn off the auto-close quote feature of the IDE... Pin
code-frog22-Feb-06 16:14
professionalcode-frog22-Feb-06 16:14 
QuestionApplication path Pin
jzb22-Feb-06 14:33
jzb22-Feb-06 14:33 
AnswerRe: Application path Pin
Christian Graus22-Feb-06 15:39
protectorChristian Graus22-Feb-06 15:39 

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.