Das Video kommt von YouTube: erst beim Abspielen verbindet sich die Seite mit YouTube (Google).
What is a Race Condition (Computer Programming)?
Das Wichtigste aus dem Video
Tipp auf eine Zeit – das Video springt genau dorthin.
Transkriptautomatisch erstellt · 22 Zeilen
- Benjamin St. George: Is your code fit to multitask?
- A Race condition is an undesirable situation in which two operations are happening at the same
- time, and essentially compete for which one will be executed first. Race conditions are most
- commonly associated with computer science and programming. It's a common issue for multithreaded
- applications, but they show up in several forms, including in software storage, memory, and
- networking. The best way to avoid race conditions is to have good, solid code that accounts for
- these scenarios. To learn more about code quality and how to measure your codes value, click the
- link above or in the description below. When race conditions occur, they depend on the sequence or
- timing of a program's processes. Otherwise, the race condition could disrupt the execution or
- cause bugs. Here's a basic scenario of a race condition: Someone with $2,000 in their bank
- account wrote two checks, check A for $1,000 and check B for $1,500. When the checks are deposited,
- a race condition develops, as the individual does not have enough money in their account to cover
- both checks. Sequential processing would ensure there's enough funds to process check a first
- before processing check B; But without sequential processing, both checks will be processed at the
- same time, and the account will be overdrawn. Detecting and identifying race conditions and code
- is difficult, but important. Hackers can take advantage of race condition vulnerabilities to
- gain unauthorized access to networks. For example, if a program attempts to execute multiple
- operations simultaneously, a threat actor can take advantage of the time between when the race
- condition develops, and when a security control takes effect, in order to create a deadlock
- situation -- A serious denial of service vulnerability or an entire software system comes
- to a halt. Are your programs and code designed to mitigate and prevent race conditions? Let us know
- in the comments below, and be sure to hit that like button.
Zum Nachlesen
WettlaufsituationEine Wettlaufsituation, aus dem Englischen auch Race Condition (deutsch Wettlauf-Bedingung) oder Race Hazard (deutsch Wettlauf-Risiko), mitunter auch …
Kritischer AbschnittKritische Abschnitte bestehen aus mehreren Einzelanweisungen, deren Zwischenergebnisse inkonsistente Zustände darstellen, auf die die anderen Threads keinen …
MultithreadingMultithreading (englisch wörtlich für Mehrfädigkeit oder auch Mehrsträngigkeit und, weiter übertragen, die Nebenläufigkeit) bezeichnet in der Informatik das …
Pipeline-HazardPipeline-Hazards sind Konflikte in der Pipeline von Prozessoren, die während der Programmlaufzeit auftreten können. Alle modernen Prozessoren sind in …