No video

C# multithreading 🧶

  Рет қаралды 152,909

Bro Code

Bro Code

Күн бұрын

C# multithreading tutorial example explained
#C# #multithreading #threads
// thread = an execution path of a program
// We can use multiple threads to perform,
// different tasks of our program at the same time.
// Current thread running is "main" thread
// using System.Threading;
music credits 🎼 :
===========================================================
Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
Creative Commons - Attribution-ShareAlike 3.0 Unported- CC BY-SA 3.0
Free Download / Stream: bit.ly/2JnDfCE
Music promoted by Audio Library • Up In My Jam (All Of A...
===========================================================

Пікірлер: 286
@BroCodez
@BroCodez 3 жыл бұрын
using System; using System.Threading; namespace MyFirstProgram { class Program { static void Main(string[] args) { // thread = an execution path of a program // We can use multiple threads to perform, // different tasks of our program at the same time. // Current thread running is "main" thread // using System.Threading; Thread mainThread = Thread.CurrentThread; mainThread.Name = "Main Thread"; //Console.WriteLine(mainThread.Name); Thread thread1 = new Thread(() => CountDown("Timer #1")); Thread thread2 = new Thread(() => CountUp("Timer #2")); thread1.Start(); thread2.Start(); Console.WriteLine(mainThread.Name + " is complete!"); Console.ReadKey(); } public static void CountDown(String name) { for (int i = 10; i >= 0; i--) { Console.WriteLine("Timer #1 : " + i + " seconds"); Thread.Sleep(1000); } Console.WriteLine("Timer #1 is complete!"); } public static void CountUp(String name) { for (int i = 0; i
@agoogleuser3402
@agoogleuser3402 3 жыл бұрын
Why are you uploading videos like this? Why don't make it a full course.
@girlkun7518
@girlkun7518 3 жыл бұрын
Hi! Could you make a video about topic "How to handle 2 keys pressed simultaneously in java"? Please... I'm Vietnamese and I'm really looking forward to this
@dakar_84
@dakar_84 3 жыл бұрын
@@agoogleuser3402 already
@georgebogheanu2200
@georgebogheanu2200 Жыл бұрын
Beat YT alg !
@Tecwithjawad_bahi
@Tecwithjawad_bahi Жыл бұрын
Thank u❤
@nico_qwer1732
@nico_qwer1732 Жыл бұрын
Wow. This is clear, short and so easy to understand. No obnoxious music, just plain code and explanations. Thank you!
@FollyH
@FollyH 2 жыл бұрын
Thank you for explaining this in a simple way, it's not easy to find this kind of stuff nowadays!
@sergioernestotostadosanche5700
@sergioernestotostadosanche5700 2 жыл бұрын
I only can say: WOW, YOU EXPLANATION SKILL IS SECRET LEVEL!!! Thank you for your knowledge sharing.
@MadeoStudios
@MadeoStudios 4 ай бұрын
Welcome adventurer! Seems like you've had a long way to get here (if you didn't skip any tutorial). Relax and be happy, because you just learned how to program in C# from the best teacher ever. Seems like I have to go! I wish you luck on your next programming adventure.
@ricardomartins5851
@ricardomartins5851 2 жыл бұрын
first time I ran into your channel, you explainned in 6 min what my lecturer couldn't in 2 hours! you got a new subscriber, thank you
@AhmadEn-iu5ph
@AhmadEn-iu5ph Жыл бұрын
Since I got to know this channel, it has become my favorite channel when looking for comprehensive but concise and easy to understand programming courses! Great channel. Great content. Great teaching style. Very concise and precise and straight to the point! Thanks a lot for helping people learn to program :)
@mrcatpfp
@mrcatpfp Жыл бұрын
he also finished all the courses not like stopping after uploading a few videos like other youtuebers
@loviljacob.795
@loviljacob.795 2 ай бұрын
Bro i like your style of explaining, no BS talking ,straight to the point
@devfaldu9216
@devfaldu9216 2 жыл бұрын
Bro you should really continue this channel. Your explanation is sooo good. C# videos of such quality are hard to find on youtube
@seekpodcast
@seekpodcast 2 жыл бұрын
Thank you so much. I was trying to wrap my head around multithreading as used in Sebastian Lague’s procedurally generated terrain tutorial and this helped me a ton to understand what was going on.
@AetherArcanist
@AetherArcanist 3 ай бұрын
Same here!!
@bartsworkshop
@bartsworkshop Ай бұрын
WOW, this is the easiest example of Multi Threading I have seen online to date. Thank you this makes it so much easier to understand!
@dixta
@dixta 3 жыл бұрын
Oh nice, 50 new videos! Thanks for all of the effort put into these videos
@blesk666.
@blesk666. Ай бұрын
just learned C# thanks to you. A great journey is ahead!
@Takayaki42
@Takayaki42 3 жыл бұрын
Hey Bro, keep up the good work. These 50 C# videos helped me a lot to get a grip on the language. Thank you so much!
@lostninza9844
@lostninza9844 Ай бұрын
im freaking love your series, i have watched c++ and c# now and i can say that i surely can start programming now! thank you bro :D
@syllight9053
@syllight9053 3 жыл бұрын
Bro Code, ma bro. You've been cranking videos! I'm very happy for you and the other people who're gonna learn from you. I hope you got 8 hours of sleep though...
@guillaume8437
@guillaume8437 Жыл бұрын
Bro Code! So great this video. It goes straight to the point, in a very simple manner and explains clearly the difference between with and without multithreading. Thumbs up!
@akshatjain7178
@akshatjain7178 3 жыл бұрын
my man just spammed the upload button dayummmm .. now i have videos to binge all night
@pyaewaye2928
@pyaewaye2928 7 ай бұрын
Your style of teaching is concise and clear. Wish you would also do more advanced c# topics and tutorials. I learned a lot from this. Thank you.
@yipyiphooray339
@yipyiphooray339 3 жыл бұрын
U ARE SO UNDERRATED FFS
@aba22125
@aba22125 2 жыл бұрын
OMG thank you, I've been trying to learn that async sh*t, but that wasn't what I was looking for. This was extremely, INSANELY, simple.
@shwetachavan751
@shwetachavan751 5 ай бұрын
Completed all 50 videos. Thank you so much for the course. Your explanation and examples was very easy to understand. Thank you for all the amazing videos.
@hirenjethva6122
@hirenjethva6122 9 ай бұрын
So easily explained, before this I thought of multithreading some tough concept but now the way you explained I will remember lifetime. Thank you...
@kanekiken6431
@kanekiken6431 2 жыл бұрын
Yo that's some slick explaining you did there ... thanks got the basic concept down thanks to you
@mccordinator
@mccordinator 4 ай бұрын
Thanks for this concise run through! :)
@mamedaleskerov1507
@mamedaleskerov1507 2 жыл бұрын
Thank you for your nice and clear explanation!!!
@karlallanicsky
@karlallanicsky Жыл бұрын
Thank you for this Bro! You are very clear and direct to the point, which makes the topics easy to understand
@kristijanlazarev
@kristijanlazarev 5 ай бұрын
Just finished each one of his courses, so amazing!
@SidheKnight
@SidheKnight 2 ай бұрын
Thank you! You're very good at explaining.
@monkeibusiness
@monkeibusiness 3 жыл бұрын
jesus christ my abo box, good stuff.
@jiriklokocka7371
@jiriklokocka7371 5 ай бұрын
Briliant tutorial, thank you!
@IvanIvanov-ig1zx
@IvanIvanov-ig1zx 9 ай бұрын
Simple and clear lessons. Verry good! Thanks.
@GiveUpOrGetUp
@GiveUpOrGetUp 2 жыл бұрын
Thank you for explaining it very well. Was pulling hair all day to get a grasp about this topic.
@user-gk9fn8pu1f
@user-gk9fn8pu1f 9 ай бұрын
Thank you so much, your tutorial help me to learn a lot of new things!
@linus3k
@linus3k Жыл бұрын
To the point. Easy, peasy.
@adbanerjee9888
@adbanerjee9888 Ай бұрын
Absolutely fantastic.. Thank you!
@dimitriskaitatzis9770
@dimitriskaitatzis9770 Жыл бұрын
Thank you very much. You helped me a lot with my project. I was needing a timer, running on the "background" and your tutorial helped me a lot! :)
@TheDigitalZero
@TheDigitalZero 11 ай бұрын
I know it's been 6 months, but in case you haven't discovered it yet, you can use the DateTime type to compare a stored time value with the current time.
@grantwilliams9838
@grantwilliams9838 Жыл бұрын
Just subscribed. Two really great vids on topics I've been literally scouring the net for weeks. Just a fluke I've come across Bro Code. Keep up the excellent work!
@ametist007
@ametist007 6 ай бұрын
Your videos are great! Many others could not help me, and despite the foreign language, I understood you perfectly
@jkking3213
@jkking3213 3 жыл бұрын
I am glad to see you again! yo you uploaded a lot of videos!
@Forshen
@Forshen Жыл бұрын
Clear, simple, to the point. thanks!
@syllight9053
@syllight9053 3 жыл бұрын
If you ever feel lonely, remember we're your here for you, bro!
@bbjeppson
@bbjeppson 12 күн бұрын
Thank you for these!
@danyasklyanichenko817
@danyasklyanichenko817 3 ай бұрын
man, you are the best. Thank you for this tutorial😘
@stefanstrauberg6645
@stefanstrauberg6645 Жыл бұрын
Easy, fast and importantly clear 👍😎
@linhquach8662
@linhquach8662 Жыл бұрын
Great video, thank you for explaining this in a simple way. Keep it on!
@Anuli-Edom
@Anuli-Edom 5 ай бұрын
Awesome work here.
@cooldude-mi9wz
@cooldude-mi9wz Жыл бұрын
who needs to waste 100 dollors on udemy courses when you have bro code to help you out here. awsome stuff man. liked.
@sinvalfelisberto
@sinvalfelisberto Жыл бұрын
Thanks for sharing! Greetings from Brazil!
@NotXeneonn
@NotXeneonn 9 ай бұрын
This video made me learn in 6 minutes what my programming teacher made me learn in 2 weeks
@pastub
@pastub 2 жыл бұрын
Very nice! I 'm checking all other material in this channel. Thanks!
@tech-zenth
@tech-zenth 10 ай бұрын
Nice example
@timmyla90
@timmyla90 Жыл бұрын
Thank you so much for explaining it so simple and easy to understand!
@Ragundah
@Ragundah 2 жыл бұрын
Liked, Subscribed, and Commented. You've earned it. You're great.
@dineshezeikel2578
@dineshezeikel2578 3 ай бұрын
Nice explanation
@khizerhussain7613
@khizerhussain7613 Жыл бұрын
Amazing tutorial
@dazaifromrussia
@dazaifromrussia Жыл бұрын
Very Simple way of explaining.
@OnderCoskun-il8wj
@OnderCoskun-il8wj Жыл бұрын
it was good task. Congrulations Bro!
@AlirezaR5
@AlirezaR5 Жыл бұрын
I wish you had more videos on C#
@manyfailsonewin4352
@manyfailsonewin4352 Жыл бұрын
really appreciating this channel. keep it nice and simple for us my bro.
@ghaxxx8883
@ghaxxx8883 Жыл бұрын
You helped me a lot.. the best tutorial out there.. thanksss
@yasinmagan7116
@yasinmagan7116 Жыл бұрын
Great explanation in a nutshell 👏👏
@jimzoo5254
@jimzoo5254 11 ай бұрын
nice vedio.
@karlopetrinic6623
@karlopetrinic6623 Жыл бұрын
Can you do Lambda Expressions also?
@vigneshkanna1636
@vigneshkanna1636 Жыл бұрын
Great work and it would be very much helpful if you could give an real time examples like were this could be used in an automation frame work or so.
@anurag_droidev
@anurag_droidev 3 жыл бұрын
Thanks for all these videos they ar so helpful
@gulbaharnecefzade367
@gulbaharnecefzade367 Жыл бұрын
Awesome🤩👍
@patrickmachado7525
@patrickmachado7525 Жыл бұрын
Awesome! Saved me hours of study!
@CarlosGomez-kb24
@CarlosGomez-kb24 Жыл бұрын
Thank you for the easy and quick lesson! :D
@MahmoudSaadawy
@MahmoudSaadawy 2 жыл бұрын
Amazing! Please upload more C# Tutorials about real projects.
@Stellanovum
@Stellanovum Жыл бұрын
Thanks for the tutorial! It was nice and easy to understand!
@steirerdis
@steirerdis Жыл бұрын
Thank you! This short clip helped alot!
@zypeth4634
@zypeth4634 Жыл бұрын
Thank you for this video, I am commenting to boost the algorithm and help your channel cuz im so cool like that fr fr. But thanks :D
@surajwagh3654
@surajwagh3654 Жыл бұрын
Superb
@jjherrera2b
@jjherrera2b 9 ай бұрын
Great, very helpful, thanks for sharing...
@davidcordero396
@davidcordero396 Жыл бұрын
Clear and simple. Thanks alot!
@moisesreiter
@moisesreiter 2 жыл бұрын
Amo tus videos Bro!!! Espero puedas subir mas!!! Un abrazo desde Perú
@TheScorpionAly
@TheScorpionAly 2 жыл бұрын
Awesome tutorial for beginners!
@megahombre24
@megahombre24 2 жыл бұрын
This was perfect, thanks a lot!!!
@mythos03
@mythos03 Жыл бұрын
fantastic video series, thank you so much for your work!!!
@imperadordogado6189
@imperadordogado6189 Жыл бұрын
Simple and clear. Ty bro!
@JimboyLearn-mc2zr
@JimboyLearn-mc2zr 2 ай бұрын
OMG, clicking through all the indian videos till I finally find a proper english video about this topic...
@hamzarafi5387
@hamzarafi5387 Жыл бұрын
EZ explaination of multithreading..GG boi
@nikoloztskhvedadze4167
@nikoloztskhvedadze4167 Жыл бұрын
Good one
@freddyboyys
@freddyboyys 11 ай бұрын
superb
@zdspider6778
@zdspider6778 Жыл бұрын
These were great. I speedran through the playlist at 1.75x in about 2-3 days or so. 5:46 A video on lambda expressions would be great, yeah.
@darios5355
@darios5355 Жыл бұрын
I would love to see a video about the Lambda expressions too!
@syllight9053
@syllight9053 3 жыл бұрын
I feel like there's gonna be a C# full course in the future!
@ishaanbhardwaj6121
@ishaanbhardwaj6121 3 жыл бұрын
Bro is this course to learn c# from basic to full or are there some topics missing
@syllight9053
@syllight9053 3 жыл бұрын
@@ishaanbhardwaj6121 Long story short, this video gives more topics that a paid course on Udemy
@user-uk1op9nn8l
@user-uk1op9nn8l 5 ай бұрын
Well explained
@drorgu102
@drorgu102 2 ай бұрын
Could you enlighten me about what happens with the main thread? What should I do with it? Should one of the timers run on it, or is it better to create a new thread for every timer? Additionally, where should Tasks be used, or are they not relevant? I used your video's examples to understand threads more clearly.
@_gabrielzin_6862
@_gabrielzin_6862 3 жыл бұрын
you're amazing bro, nice video!
@KhalidIbnWalid15
@KhalidIbnWalid15 8 ай бұрын
Very well explained. Thanks Bro 🙂. A video on C# lambda would be useful as I didn't understand the bit about () => Thread1("thread #1").
@rifatislamrakesh
@rifatislamrakesh Жыл бұрын
please add more tutorials. async await would be great for next topic !
@kamalpoladov5531
@kamalpoladov5531 Жыл бұрын
You are amazing. I really like your videos 👍🏻
@arturkrant4745
@arturkrant4745 Жыл бұрын
comment to keep this channel alive
@alexander5052
@alexander5052 2 жыл бұрын
Great explanation! Thank you!!!
@ElaKro
@ElaKro Жыл бұрын
great clear video thank
@chriss1402
@chriss1402 3 ай бұрын
well explained. Thanks.
@elaprendiz7208
@elaprendiz7208 6 ай бұрын
My english it's not good, but i can understand everything what you say. I want to see a video about Lambda expression. Thank you for yours videos.
@pawloaspaja289
@pawloaspaja289 2 жыл бұрын
Thank you bro! At 5:00 it was what I was loking about. Thanks
@natnaeltedros552
@natnaeltedros552 2 жыл бұрын
Great job
C# Multithreading - Master Threads and Tasks
9:51
tutorialsEU - C#
Рет қаралды 31 М.
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 16 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН
Multithreading Code - Computerphile
15:54
Computerphile
Рет қаралды 383 М.
C# polymorphism 🎭
5:11
Bro Code
Рет қаралды 78 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 911 М.
C# Threads, Tasks, Multi-threading & UI Cross-threading
1:07:04
Multithreading vs Asynchronous Programming
11:00
Nutshell
Рет қаралды 14 М.
C# Events and Delegates Made Simple | Mosh
32:04
Programming with Mosh
Рет қаралды 941 М.
how Google writes gorgeous C++
7:40
Low Level Learning
Рет қаралды 859 М.
Вы чего бл….🤣🤣🙏🏽🙏🏽🙏🏽
00:18