No video

What you should know about Threads in .NET

  Рет қаралды 7,132

Raw Coding

Raw Coding

Күн бұрын

Пікірлер: 28
@denis.akopyan
@denis.akopyan 6 ай бұрын
This is a very important video for understanding threads and async code. I strongly suggest using visuals. I personally love your cog analogy, but images might help the mind focus on understanding the concepts without putting too much effort of visualizing a cog. Even a clumsy ms paint picture can go a long way.
@eddypartey1075
@eddypartey1075 6 ай бұрын
Exactly! Got the same idea while was watching vid
@fieryscorpion
@fieryscorpion 6 ай бұрын
This would have been a great video with some diagrams or animations. Felt really hard to follow, so I'll probably have to watch it few more times to understand.
@user-tv9sm8bb8w
@user-tv9sm8bb8w 6 ай бұрын
Agree
@sergeys5270
@sergeys5270 6 ай бұрын
it would be clearer if there was a simple visual presentation
@vedantkoditkar5968
@vedantkoditkar5968 6 ай бұрын
Would be great if you could or already have a video about how such situations can be handled by refactoring the code.
@SuperKombain
@SuperKombain 6 ай бұрын
Thank you so much for a dark IDE theme! Appreciate you've heard my ask 🙏
@darkmift
@darkmift 19 күн бұрын
Recommend a note about semaphore and lock not knowing these makes following difficult.
@Jebediah_w
@Jebediah_w 6 ай бұрын
Love the in depthness of this one.
@naitik_
@naitik_ 6 ай бұрын
One more thing to add to this: - Normally, the Task approach is a good thing. It saves the application from hogging all the threads of the machine and juggles small operations on threads. Like one more layer of juggling on a processor. And it protects beginners from messing up with direct threads. Only for advanced level scenarios one may have to deal with direct threads.
@parkerwarner8688
@parkerwarner8688 6 ай бұрын
Love the video. What would be the case of a blocking task? Or something that would jam the thread and not finish? Trying to think of a real world example
@RawCoding
@RawCoding 6 ай бұрын
There shouldn’t be. This tended to happen when people mixed non async synchronisation tools with async code such as locks, which are used inside Semaphore (not slim) ConcurrentBag etc…
@_OsamaAmir
@_OsamaAmir 6 ай бұрын
so if tasks are jamming the threads, is it not a bad idea to use a lot of await keywords, if I remember correctly, you told in your async await video that if awaiting is not required, we should just return a Task and manage awaiting higher up the chain of functions, my question is that just making, running and returning tasks without using await, do they also block the threads, or do they perform the operation synchronously it is a bit confusing so can you guide on that a bit
@RawCoding
@RawCoding 6 ай бұрын
Everytime you write await, you are creating a cog before and after the await, the thread pool will place those cogs on the thread. Cogs don’t block, statements such as lock, and getawaitergetresult cause cogs to block.
@charles_kuperus
@charles_kuperus 6 ай бұрын
That was awesome video About tasks and threads. Would you do a video on configure await equals false vs true?
@wobblejuice
@wobblejuice 6 ай бұрын
the voice is out of sync...
@gustavnilsson6597
@gustavnilsson6597 6 ай бұрын
Brilliant!
@veec1539
@veec1539 6 ай бұрын
Love the videos, though miss the light mode with shades
@thishandleistaken
@thishandleistaken 6 ай бұрын
Something went wrong with the audio and video, it's not synced.
@Sife-db
@Sife-db 6 ай бұрын
Await it
@ragtop63
@ragtop63 6 ай бұрын
Although I understand what you’re trying to illustrate, I feel like the cog analogy isn’t as intuitive as might have first seemed. Also, working visuals would help a lot too.
@ilyahryapko
@ilyahryapko 6 ай бұрын
English is too much of a non-native language for me to listen repeating "cogs" to be honest :) Anyways, Anton, your videos are just diamonds in all that junk of modern .net content. Thank you!
@GrimReaper160490
@GrimReaper160490 6 ай бұрын
Is it just me or is the audio desynched from the video?
@TheJohndward01
@TheJohndward01 6 ай бұрын
Yay for darkmode!!!
@ethanr0x
@ethanr0x 6 ай бұрын
You need to explain and demonstrate better how ACTUAL threads execute an ACTUAL task with logging the Thread.ID for example before this video can really make sense. Now I am left with the idea that different threadpool threads execute different segments of the underlying task state machine but why do they not execute all of it? Why exactly?
@gordonfreimann
@gordonfreimann 6 ай бұрын
can you make video of c# scripting with roslyn?
@RawCoding
@RawCoding 6 ай бұрын
I have a bunch of vids like that on my video looking for anything specific?
@Riketta
@Riketta 6 ай бұрын
Nice beard
Why replace if statements with Objects
22:20
Raw Coding
Рет қаралды 8 М.
ChatGPT for Data Analytics: Full Course
3:35:30
Luke Barousse
Рет қаралды 255 М.
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН
wow so cute 🥰
00:20
dednahype
Рет қаралды 30 МЛН
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 17 МЛН
That's NOT How Async And Await Works in .NET!
12:25
Codewrinkles
Рет қаралды 21 М.
Diagnosing thread pool exhaustion issues in .NET Core apps
23:57
How to write a Concurrent Thread-safe Queue from scratch?
17:14
Arpit Bhayani
Рет қаралды 13 М.
Building an ASP.NET Core App using Functional Programming
26:37
Raw Coding
Рет қаралды 3,9 М.
How Web Sockets work | System Design Interview Basics
5:28
ByteMonk
Рет қаралды 209 М.
Settling the Biggest Await Async Debate in .NET
14:47
Nick Chapsas
Рет қаралды 142 М.
Understanding .NET C# Heaps (Deep Dive)
28:23
Raw Coding
Рет қаралды 13 М.
The Coolest Way To Await Multiple Tasks in .NET
9:24
Nick Chapsas
Рет қаралды 63 М.
Why thread pools even exist? and how to implement them?
9:29
Arpit Bhayani
Рет қаралды 35 М.
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН