Multithreading Explained In Under Six Minutes

  Рет қаралды 5,963

The Ops Center By Mike Solyom

The Ops Center By Mike Solyom

Күн бұрын

Multithreading can seem like black magic that only code magicians can understand. But it's not as complicated as it seems. In this video we'll go through some examples that should hopefully demystify multithreading.
And I also some thoughts on how multithreading might affect Digital Combat Simulator in an upcoming update.
Eagle Dynamics has shared some information about the coming performance enhancements in this newsletter:
www.digitalcombatsimulator.co...
Obligatory disclaimers:
The presence of DOD Visual Information in this video does not constitute endorsement by the DOD or any of its departments. Any views expressed by the presenter are those of the presenter and do not represent the views of the DOD or any of its components.

Пікірлер: 33
@Roxas13XIII
@Roxas13XIII Жыл бұрын
Very nice. I remember during my computer architecture course going through this. What I found interesting was, at least in my class, there's no real concrete formula for finding where multithreading will be faster than using single threads. Sometimes the data is just not large enough to make a noticeable difference. It was pretty much guess and check.
@oddlyspecificmath
@oddlyspecificmath 11 ай бұрын
I think you develop a _"hmm, probably worth trying"_ sense for it too. The javascript/browser Canvas is a good bet, e.g.; here, Workers can do their best to update data for the next AnimationFrame (itself async and best-effort 60fps), but if they miss an update time point, the main / interactive thread doesn't have to hang (as it would if you tried calling out from the AF) and the browser stays responsive. Games that work fine in one thread on current phones then work on the (numerous, and actually likely to be multicore) hand-me-down's that are still out there worldwide.
@radjenrampersad
@radjenrampersad Жыл бұрын
This is the first time it is explained to me in a way even I understand,...thank you very much.
@GlorifiedPig
@GlorifiedPig 11 ай бұрын
By far the best quick explanation of multithreading I've found, thanks!
@redtailpilot
@redtailpilot Жыл бұрын
Enjoyed watching this and learning as I wait for the new DCS MT update to finish downloading! 😉Thanks👍🏾
@JoshHarris88
@JoshHarris88 Жыл бұрын
Fantastic simple lesson!
@Patr10
@Patr10 Жыл бұрын
Thanks! Very clear explanation
@edimoulitsas
@edimoulitsas Жыл бұрын
As always, very clear and to the point. Many thanks Mike
@speed-of-heat
@speed-of-heat Жыл бұрын
solid brief, many thanks
@DerekSpeareDSD
@DerekSpeareDSD Жыл бұрын
great explanation!
@mindassassinatetv5242
@mindassassinatetv5242 Жыл бұрын
Wow I like your explanations.....thanks bro...
@takeoffwithjakesoft
@takeoffwithjakesoft Жыл бұрын
As a software developer and DCS player, I approve this message.
@ricardostorck
@ricardostorck Жыл бұрын
very nice vid!
@jaynuck
@jaynuck Жыл бұрын
Thank you!
@Jon885
@Jon885 Жыл бұрын
Thanks Mike! This is very informative. Also, where did you get that USAF MB-339 skin?!?!
@TheOpsCenterByMikeSolyom
@TheOpsCenterByMikeSolyom Жыл бұрын
It's one I made myself. Once I get some time to optimize it I'll post it up to the user files.
@Jon885
@Jon885 Жыл бұрын
@@TheOpsCenterByMikeSolyom Great job! It looks great! I may need to try and make a Lackland one.
@DLevasseur
@DLevasseur Жыл бұрын
Would love to see the code with the sync thread
@TheOpsCenterByMikeSolyom
@TheOpsCenterByMikeSolyom Жыл бұрын
I took a quick screenshot of that part and posted it here: drive.google.com/file/d/1HnrBnjAUaVqzz0KVoQUXMV7Sx1Z1QG7g/view?usp=share_link
@nathanskupowski4726
@nathanskupowski4726 7 ай бұрын
Is this something that happens automatically
@S3NTRY
@S3NTRY Жыл бұрын
Great stuff, thanks Mike. Where are most advantages to be gained by this. I've been under the impression that the logic could be even further divided by things like e.g. pathing, and firing solutions for AI having their own threads, with results being handed back in a queued fashion. Am I out of my tree, or does that make sense?
@TheOpsCenterByMikeSolyom
@TheOpsCenterByMikeSolyom Жыл бұрын
There's no way for anyone who doesn't have access to the source know where the biggest gains can be had. But you are right that dividing up the threads further will provide additional gains. In one of the newsletters ED did say that the two thread split was just the first iteration and more would be coming later. Hopefully, we won't have to wait years to see it.
@S3NTRY
@S3NTRY Жыл бұрын
@@TheOpsCenterByMikeSolyom fingers crossed, as ever 🤞
@nrosko
@nrosko Жыл бұрын
what about multiple cores? is that something else entirely?
@altyee
@altyee Жыл бұрын
Thread is a logical concept and Core is a physical/hardware concept. A thread is an ordered list of tasks created by a program, and a core is the actual worker to do the tasks. In multiple cores setup, each core will be assigned a bunch of threads to work on. If there is only one thread for the given program, only one core can work on it. To parallel the program, you will need to logically divide the tasks (into multiple threads), and physically have multiple workers (multiple core).
@Roxas13XIII
@Roxas13XIII Жыл бұрын
Threads are part of cores. Each core has X amount of threads.
@alymikky97
@alymikky97 3 ай бұрын
like and sub for the POE clip.
@colen4308
@colen4308 9 ай бұрын
does that mean multicore cpus have been a waste because most of the time only one thread is doing the work?
@TheOpsCenterByMikeSolyom
@TheOpsCenterByMikeSolyom 8 ай бұрын
It depends on the application. In a truly single threaded app, yes the extra cores would be sitting idle. But since a lot of this channel's viewers are into DCS, let's use that as an example. Before this year's "multithreading" patch DCS actually did some work done on a separate thread. You'll hear people refer to it as the "sound thread". Now it was still pretty easy to overwhelm the entire DCS process because so much work was done in one overloaded thread. But the "multithreading" patch helped to split up that one mega thread and spread that load around. So in the case of DCS it would not have been a waste to use a multicore processor. It's just that it didn't help very much before the "multithreading" patch. A lot of DirectX games can also get a minor benefit as well since DirectX does some very limited automatic multithreading. But for a significant boost you need a purpose built multithreaded application. Hope that helps.
@mYOwngUn
@mYOwngUn 2 ай бұрын
​​@@TheOpsCenterByMikeSolyomhow do you know all of these things together with all the rest of your knowledge? It's very impressive. Like im which field does one have to know abour radars, multi threading etc.
@TheOpsCenterByMikeSolyom
@TheOpsCenterByMikeSolyom 2 ай бұрын
@@mYOwngUn I was a programmer in the USAF. That gave me the opportunity to see a lot of the neat things the Air Force has and then write software for it.
@mYOwngUn
@mYOwngUn 2 ай бұрын
@@TheOpsCenterByMikeSolyom thats awesome! Thanks for letting me know
@luckybutunlucky8937
@luckybutunlucky8937 13 сағат бұрын
First off if you aren't getting FPS boost from multithreading either on the CPU or GPU then you're implementing it wrong. Not to mention in C setting variables to volatile will make sure more than one thread can access a variable with no problem. Also make sure the threads aren't waiting for any other threads to finish. Game developers are afraid of race conditions in their code but in real life atoms run independently of each other. On a subatomic scale everything is a race condition until you collapse the wave function. They just don't want to put in the extra brainpower to use it to it's fullest.
How You Can Use A B-Scope Like A Fighter Pilot | Air Supremacy Series
10:47
The Ops Center By Mike Solyom
Рет қаралды 7 М.
Reshade for DCS is a MUST | Multithread Update | Tutorial
8:36
Black Hornet Sim
Рет қаралды 41 М.
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,2 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,4 МЛН
How Do CPUs Use Multiple Cores?
6:00
Techquickie
Рет қаралды 2 МЛН
PROOF JavaScript is a Multi-Threaded language
8:21
Beyond Fireship
Рет қаралды 266 М.
DCS AI is almost as good as 33 year old sim
4:57
Andrew A
Рет қаралды 5 М.
Pulse Radar Explained | How Radar Works | Part 2
7:27
The Ops Center By Mike Solyom
Рет қаралды 27 М.
The Secret Behind U.S. Air Supremacy
10:46
The Ops Center By Mike Solyom
Рет қаралды 10 М.
Defensive ACM Explained | Air Combat Maneuvering | DCS | Part 5
8:09
The Ops Center By Mike Solyom
Рет қаралды 4,6 М.
The Fetch-Execute Cycle: What's Your Computer Actually Doing?
9:04
Tom Scott
Рет қаралды 1,8 МЛН
How CPUs Use Multiple Cores
5:15
Techquickie
Рет қаралды 314 М.
How One Circle Fights Work | BFM Series | DCS | Part 11
12:38
The Ops Center By Mike Solyom
Рет қаралды 20 М.
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 4,7 МЛН
После ввода кода - протирайте панель
0:18
Low Price Best 👌 China Mobile 📱
0:42
Tech Official
Рет қаралды 718 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,4 МЛН