Click here to Skip to main content
15,884,099 members
Home / Discussions / C#
   

C#

 
AnswerRe: Created Access DB, now how to load a list into a single column in the newly created DB. Pin
OriginalGriff4-Dec-21 6:48
mveOriginalGriff4-Dec-21 6:48 
GeneralRe: Created Access DB, now how to load a list into a single column in the newly created DB. Pin
jsc426-Dec-21 2:58
professionaljsc426-Dec-21 2:58 
QuestionPass field Pin
Luis M. Rojas3-Dec-21 2:25
Luis M. Rojas3-Dec-21 2:25 
AnswerRe: Pass field Pin
Richard Deeming3-Dec-21 2:56
mveRichard Deeming3-Dec-21 2:56 
Questionthread safety and performance Pin
Super Lloyd2-Dec-21 15:31
Super Lloyd2-Dec-21 15:31 
GeneralRe: thread safety and performance Pin
harold aptroot2-Dec-21 16:03
harold aptroot2-Dec-21 16:03 
GeneralRe: thread safety and performance Pin
Super Lloyd2-Dec-21 17:59
Super Lloyd2-Dec-21 17:59 
AnswerRe: thread safety and performance Pin
trønderen3-Dec-21 2:36
trønderen3-Dec-21 2:36 
Super Lloyd wrote:
luckily there is a common entry point
That makes it easy, but ... If the traffic is high, so there is a definite risk that one or more (or many!) tasks may be queued in line for access to the resource, and the resource is a large structure, you may be preventing access to far more than you need to. Maybe others could safely access most of the structure when you are working on another part of it.

Compare it to locking in database systems: The oldest systems locked the entire table, no other transaction could affect any part of it. A banking system with twelve tellers was as slow as one with a single teller, because they all had to wait for the table to be released. The next development step was to lock individual tuples, so as long as the tellers were referring to different accounts, they could proceed.

One main justification for B-link trees (over other B-tree-variants) is that even when a block is split, you need only lock a single block at a time; other threads may freely access all other blocks in parallel.

If you have had no protection until now, there probably isn't that much congestion, and this is not too much of a concern. Yet, as a general rule: It is a good idea to lock only the data that you really are using!
AnswerRe: thread safety and performance Pin
trønderen3-Dec-21 3:31
trønderen3-Dec-21 3:31 
QuestionUpdate/refresh Combobox in Form1 after doing an add from Form 2 Pin
Richard A Knox2-Dec-21 5:19
Richard A Knox2-Dec-21 5:19 
AnswerRe: Update/refresh Combobox in Form1 after doing an add from Form 2 Pin
BillWoodruff2-Dec-21 5:58
professionalBillWoodruff2-Dec-21 5:58 
GeneralRe: Update/refresh Combobox in Form1 after doing an add from Form 2 Pin
Richard A Knox4-Dec-21 6:08
Richard A Knox4-Dec-21 6:08 
GeneralRe: Update/refresh Combobox in Form1 after doing an add from Form 2 Pin
Gerry Schmitz5-Dec-21 8:04
mveGerry Schmitz5-Dec-21 8:04 
QuestionReading username Pin
Luis M. Rojas1-Dec-21 4:45
Luis M. Rojas1-Dec-21 4:45 
AnswerRe: Reading username Pin
lmoelleb3-Dec-21 18:36
lmoelleb3-Dec-21 18:36 
QuestionHow can I make the timer stay active after the program is closed? Pin
Duke Jason30-Nov-21 19:34
Duke Jason30-Nov-21 19:34 
AnswerRe: How can I make the timer stay active after the program is closed? Pin
OriginalGriff30-Nov-21 20:09
mveOriginalGriff30-Nov-21 20:09 
AnswerRe: How can I make the timer stay active after the program is closed? Pin
Pete O'Hanlon30-Nov-21 21:24
mvePete O'Hanlon30-Nov-21 21:24 
AnswerRe: How can I make the timer stay active after the program is closed? Pin
Dave Kreskowiak1-Dec-21 1:20
mveDave Kreskowiak1-Dec-21 1:20 
AnswerRe: How can I make the timer stay active after the program is closed? Pin
Gerry Schmitz1-Dec-21 18:09
mveGerry Schmitz1-Dec-21 18:09 
QuestionCode cast InvalidCastException when it "Shouldn't" Pin
Evilfish200029-Nov-21 19:28
Evilfish200029-Nov-21 19:28 
AnswerRe: Code cast InvalidCastException when it "Shouldn't" Pin
OriginalGriff29-Nov-21 21:24
mveOriginalGriff29-Nov-21 21:24 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
Evilfish200030-Nov-21 2:24
Evilfish200030-Nov-21 2:24 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
OriginalGriff30-Nov-21 2:50
mveOriginalGriff30-Nov-21 2:50 
GeneralRe: Code cast InvalidCastException when it "Shouldn't" Pin
Evilfish200030-Nov-21 22:05
Evilfish200030-Nov-21 22:05 

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.