Click here to Skip to main content
15,946,012 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I Can Not Manage This Task Pin
jochance9-Feb-24 9:10
jochance9-Feb-24 9:10 
GeneralRe: I Can Not Manage This Task Pin
honey the codewitch9-Feb-24 10:04
mvahoney the codewitch9-Feb-24 10:04 
GeneralRe: I Can Not Manage This Task Pin
jochance9-Feb-24 10:25
jochance9-Feb-24 10:25 
GeneralRe: I Can Not Manage This Task Pin
honey the codewitch9-Feb-24 10:39
mvahoney the codewitch9-Feb-24 10:39 
GeneralRe: I Can Not Manage This Task Pin
jochance9-Feb-24 12:03
jochance9-Feb-24 12:03 
GeneralRe: I Can Not Manage This Task Pin
obermd5-Feb-24 16:00
obermd5-Feb-24 16:00 
GeneralRe: I Can Not Manage This Task Pin
honey the codewitch5-Feb-24 16:04
mvahoney the codewitch5-Feb-24 16:04 
GeneralRe: I Can Not Manage This Task Pin
obermd6-Feb-24 5:02
obermd6-Feb-24 5:02 
I'm simplifying based on what I had available (VAXBasic and Digital Command Language) to make the adjustments (6+ hours => 2 hours).

This simplification is also a good high-level view of what's available in a system and the realization that a thread can only do one item at a time. Threads that spawn off asynchronous tasks are still only doing one item at a time as the spawned task always executes on another thread. It may be that that thread is a hardware resource for IO, but it is still another thread and another task that attempts to use the same resource will have to wait.

IO Completion Ports use hardware signals that the OS monitors to allow applications to offload the actual IO details to an OS level thread. For commodity systems, you can have a small number of concurrent IOs occuring, and depending on the hardware and where the actual resource conflicts lie, that number can be one. From a high level, I've wrote an SQL Server based applications that had to back off on SQL errors of any sort (concurrency, timeout, etc.). The first fault (SQL error) split the task into 10 tasks to attempt concurrently. The second SQL error (double fault) used the dotNet framework's ReaderWriterLock class to force a complete back off so the erroring SQL statement would be the only insert/update query executing on the server at that time. Yes, it was a huge penalty hit but it was necessary to ensure data integrity. These threads normally set the lock to Read, but for the double fault situation the thread that was going to attempt the final insert/update/delete would set the lock to Write and wait for all the other readers to complete before attempting. Of course any new readers also waited for the Write lock to complete.

GeneralRe: I Can Not Manage This Task Pin
Richard Andrew x646-Feb-24 12:48
professionalRichard Andrew x646-Feb-24 12:48 
GeneralRe: I Can Not Manage This Task Pin
honey the codewitch6-Feb-24 12:51
mvahoney the codewitch6-Feb-24 12:51 
GeneralRe: I Can Not Manage This Task Pin
BernardIE53176-Feb-24 10:22
BernardIE53176-Feb-24 10:22 
GeneralRe: I Can Not Manage This Task Pin
honey the codewitch6-Feb-24 12:55
mvahoney the codewitch6-Feb-24 12:55 
GeneralRe: I Can Not Manage This Task Pin
RedDk6-Feb-24 13:03
RedDk6-Feb-24 13:03 
GeneralRe: I Can Not Manage This Task Pin
Davyd McColl6-Feb-24 23:45
Davyd McColl6-Feb-24 23:45 
GeneralRe: I Can Not Manage This Task Pin
maze37-Feb-24 2:58
professionalmaze37-Feb-24 2:58 
GeneralRe: I Can Not Manage This Task Pin
Member 105614937-Feb-24 4:09
Member 105614937-Feb-24 4:09 
GeneralRe: I Can Not Manage This Task Pin
thewazz7-Feb-24 9:24
professionalthewazz7-Feb-24 9:24 
GeneralRe: I Can Not Manage This Task Pin
pmauriks7-Feb-24 16:04
pmauriks7-Feb-24 16:04 
GeneralStenography Pin
BernardIE53175-Feb-24 13:19
BernardIE53175-Feb-24 13:19 
GeneralRe: Stenography Pin
jmaida5-Feb-24 16:47
jmaida5-Feb-24 16:47 
GeneralWordle 962 Pin
StarNamer@work5-Feb-24 13:13
professionalStarNamer@work5-Feb-24 13:13 
GeneralRe: Wordle 962 Pin
Shane01035-Feb-24 16:59
Shane01035-Feb-24 16:59 
GeneralRe: Wordle 962 Pin
Luc Pattyn5-Feb-24 17:15
sitebuilderLuc Pattyn5-Feb-24 17:15 
GeneralRe: Wordle 962 Pin
Jeremy Falcon6-Feb-24 7:40
professionalJeremy Falcon6-Feb-24 7:40 
GeneralRe: Wordle 962 Pin
Sandeep Mewara5-Feb-24 18:16
mveSandeep Mewara5-Feb-24 18:16 

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.