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

C#

 
GeneralRe: Aborting a Thread. Pin
Ronni Marker26-Dec-09 2:32
Ronni Marker26-Dec-09 2:32 
GeneralRe: Aborting a Thread. Pin
Luc Pattyn26-Dec-09 3:00
sitebuilderLuc Pattyn26-Dec-09 3:00 
QuestionOpen picture from application and edit with default picture edit application ? Pin
Yanshof25-Dec-09 10:27
Yanshof25-Dec-09 10:27 
AnswerRe: Open picture from application and edit with default picture edit application ? Pin
Luc Pattyn25-Dec-09 11:21
sitebuilderLuc Pattyn25-Dec-09 11:21 
Questionvisual studio and UML diagrams and unit testing Pin
Ryan Minor25-Dec-09 5:46
Ryan Minor25-Dec-09 5:46 
AnswerRe: visual studio and UML diagrams and unit testing Pin
Dimitri Witkowski25-Dec-09 12:20
Dimitri Witkowski25-Dec-09 12:20 
QuestionLabel control that set the focus to the related Textbox on the mousehover event Pin
ArjenGroeneveld25-Dec-09 4:23
ArjenGroeneveld25-Dec-09 4:23 
AnswerRe: Label control that set the focus to the related Textbox on the mousehover event Pin
Md. Marufuzzaman25-Dec-09 8:04
professionalMd. Marufuzzaman25-Dec-09 8:04 
AnswerRe: Label control that set the focus to the related Textbox on the mousehover event Pin
Martin#14-Jan-10 9:48
Martin#14-Jan-10 9:48 
QuestionRichTextBox - Text Pin
dataminers25-Dec-09 1:35
dataminers25-Dec-09 1:35 
AnswerRe: RichTextBox - Text Pin
santhosh-padamatinti26-Dec-09 7:17
santhosh-padamatinti26-Dec-09 7:17 
GeneralRe: RichTextBox - Text Pin
dataminers29-Dec-09 22:45
dataminers29-Dec-09 22:45 
QuestionDisplay user control in place of default tooltip Pin
billu 225-Dec-09 1:16
billu 225-Dec-09 1:16 
AnswerRe: Display user control in place of default tooltip Pin
Abhijit Jana25-Dec-09 1:42
professionalAbhijit Jana25-Dec-09 1:42 
GeneralRe: Display user control in place of default tooltip Pin
billu 225-Dec-09 1:53
billu 225-Dec-09 1:53 
QuestionSynchronisation in Multi Server environment Pin
c0der200925-Dec-09 1:11
c0der200925-Dec-09 1:11 
AnswerRe: Synchronisation in Multi Server environment Pin
Jimmanuel25-Dec-09 7:07
Jimmanuel25-Dec-09 7:07 
One way would be to create a separate table in the DB for locks (or just reuse the existing one). Before a process starts step 3 (or whatever the crucial step is) it checks that table for a well known value, if it exists then it knows that some other process has started business logic and it should wait. If the lock value isn't found then it can create it and continue on. The lock value that it created will signal other processes that it is currently executing business logic and they should wait.

This will work if the DB column that you're using for a lock is properly setup with a primary key constraint. If two processes try to write the same value into a PK column at (nearly) the same time the first will succeed and the other will throw an exception.

Another "Outside the Database" solution would be to make all of the processes communicate with each other via some other mechanism (sockets, MSMQ, File IO, etc) and work out that way which one should be doing what.
GeneralRe: Synchronisation in Multi Server environment Pin
c0der200925-Dec-09 20:36
c0der200925-Dec-09 20:36 
GeneralRe: Synchronisation in Multi Server environment Pin
Jimmanuel26-Dec-09 2:35
Jimmanuel26-Dec-09 2:35 
GeneralRe: Synchronisation in Multi Server environment Pin
c0der200927-Dec-09 18:14
c0der200927-Dec-09 18:14 
GeneralRe: Synchronisation in Multi Server environment Pin
Jimmanuel28-Dec-09 0:51
Jimmanuel28-Dec-09 0:51 
Questionis there any binary to decimal convertor class Pin
hotthoughtguy25-Dec-09 0:15
hotthoughtguy25-Dec-09 0:15 
Answerrepost Pin
Luc Pattyn25-Dec-09 1:19
sitebuilderLuc Pattyn25-Dec-09 1:19 
GeneralRe: repost Pin
#realJSOP25-Dec-09 22:51
professional#realJSOP25-Dec-09 22:51 
GeneralRe: repost Pin
dan!sh 25-Dec-09 23:02
professional dan!sh 25-Dec-09 23:02 

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.