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
@agoogleuser34023 жыл бұрын
Why are you uploading videos like this? Why don't make it a full course.
@girlkun75183 жыл бұрын
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_843 жыл бұрын
@@agoogleuser3402 already
@georgebogheanu2200 Жыл бұрын
Beat YT alg !
@Tecwithjawad_bahi Жыл бұрын
Thank u❤
@nico_qwer17322 жыл бұрын
Wow. This is clear, short and so easy to understand. No obnoxious music, just plain code and explanations. Thank you!
@sergioernestotostadosanche57002 жыл бұрын
I only can say: WOW, YOU EXPLANATION SKILL IS SECRET LEVEL!!! Thank you for your knowledge sharing.
@FollyH2 жыл бұрын
Thank you for explaining this in a simple way, it's not easy to find this kind of stuff nowadays!
@sundayothniel13014 күн бұрын
Thanks a lot, the video you made two years ago is playing a vital role in making me understand C# better.
@ricardomartins58512 жыл бұрын
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-iu5ph2 жыл бұрын
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 Жыл бұрын
he also finished all the courses not like stopping after uploading a few videos like other youtuebers
@devfaldu92162 жыл бұрын
Bro you should really continue this channel. Your explanation is sooo good. C# videos of such quality are hard to find on youtube
@MoHaTa-u3fАй бұрын
3:35 that makes a lot of sense now! Basically, running code on the same thread means your program will execute the code from top to bottom, and only execute the bottom after finishing to top. Multithreading enables you to run two different programs/commands (like you said) at the same time without having to wait for each other
@seekpodcast2 жыл бұрын
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.
@bartsworkshop5 ай бұрын
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!
@loviljacob.7956 ай бұрын
Bro i like your style of explaining, no BS talking ,straight to the point
@bl333sk5 ай бұрын
just learned C# thanks to you. A great journey is ahead!
@dixta3 жыл бұрын
Oh nice, 50 new videos! Thanks for all of the effort put into these videos
@shwetachavan7519 ай бұрын
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.
@Takayaki423 жыл бұрын
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!
@syllight90533 жыл бұрын
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...
@pyaewaye292811 ай бұрын
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.
@guillaume84372 жыл бұрын
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!
@hirenjethva6122 Жыл бұрын
So easily explained, before this I thought of multithreading some tough concept but now the way you explained I will remember lifetime. Thank you...
@yipyiphooray3393 жыл бұрын
U ARE SO UNDERRATED FFS
@akshatjain71783 жыл бұрын
my man just spammed the upload button dayummmm .. now i have videos to binge all night
@aba221253 жыл бұрын
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.
@lostninza98444 ай бұрын
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
@IvanIvanov-ig1zx Жыл бұрын
Simple and clear lessons. Verry good! Thanks.
@kanekiken64313 жыл бұрын
Yo that's some slick explaining you did there ... thanks got the basic concept down thanks to you
@kristijanlazarev9 ай бұрын
Just finished each one of his courses, so amazing!
@monkeibusiness3 жыл бұрын
jesus christ my abo box, good stuff.
@japanian_7 күн бұрын
Thank you so much for your video! Its clear and the content is easy to understand and learn. You're saving me for my exams. Thank you!
@mamedaleskerov15073 жыл бұрын
Thank you for your nice and clear explanation!!!
@karlallanicsky Жыл бұрын
Thank you for this Bro! You are very clear and direct to the point, which makes the topics easy to understand
@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!
@GiveUpOrGetUp2 жыл бұрын
Thank you for explaining it very well. Was pulling hair all day to get a grasp about this topic.
@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 Жыл бұрын
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.
@MadeoStudios7 ай бұрын
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.
@jkking32133 жыл бұрын
I am glad to see you again! yo you uploaded a lot of videos!
@sinvalfelisberto2 жыл бұрын
Thanks for sharing! Greetings from Brazil!
@yasinmagan71162 жыл бұрын
Great explanation in a nutshell 👏👏
@Forshen Жыл бұрын
Clear, simple, to the point. thanks!
@ghaxxx8883 Жыл бұрын
You helped me a lot.. the best tutorial out there.. thanksss
@mccordinator8 ай бұрын
Thanks for this concise run through! :)
@Ragundah2 жыл бұрын
Liked, Subscribed, and Commented. You've earned it. You're great.
@user-gk9fn8pu1f Жыл бұрын
Thank you so much, your tutorial help me to learn a lot of new things!
@pastub2 жыл бұрын
Very nice! I 'm checking all other material in this channel. Thanks!
@manyfailsonewin43522 жыл бұрын
really appreciating this channel. keep it nice and simple for us my bro.
@stefanstrauberg6645 Жыл бұрын
Easy, fast and importantly clear 👍😎
@karlopetrinic6623 Жыл бұрын
Can you do Lambda Expressions also?
@jjherrera2b Жыл бұрын
Great, very helpful, thanks for sharing...
@OnderCoskun-il8wj2 жыл бұрын
it was good task. Congrulations Bro!
@stephanieezat-panah77503 ай бұрын
As always, excellent. thank you, Bro
@linzer-mm1fj2 жыл бұрын
good explanation bro
@SidheKnight6 ай бұрын
Thank you! You're very good at explaining.
@moisesreiter2 жыл бұрын
Amo tus videos Bro!!! Espero puedas subir mas!!! Un abrazo desde Perú
@ametist0079 ай бұрын
Your videos are great! Many others could not help me, and despite the foreign language, I understood you perfectly
@syllight90533 жыл бұрын
If you ever feel lonely, remember we're your here for you, bro!
@adbanerjee98885 ай бұрын
Absolutely fantastic.. Thank you!
@patrickmachado75252 жыл бұрын
Awesome! Saved me hours of study!
@timmyla90 Жыл бұрын
Thank you so much for explaining it so simple and easy to understand!
@linhquach86622 жыл бұрын
Great video, thank you for explaining this in a simple way. Keep it on!
@linus3k Жыл бұрын
To the point. Easy, peasy.
@NotXeneonn Жыл бұрын
This video made me learn in 6 minutes what my programming teacher made me learn in 2 weeks
@dazaifromrussia Жыл бұрын
Very Simple way of explaining.
@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 Жыл бұрын
I would love to see a video about the Lambda expressions too!
@TheScorpionAly2 жыл бұрын
Awesome tutorial for beginners!
@pawloaspaja2892 жыл бұрын
Thank you bro! At 5:00 it was what I was loking about. Thanks
@CarlosGomez-kb24 Жыл бұрын
Thank you for the easy and quick lesson! :D
@nikoing2 жыл бұрын
Short but crucial... A nice video
@jiriklokocka73719 ай бұрын
Briliant tutorial, thank you!
@anurag_droidev3 жыл бұрын
Thanks for all these videos they ar so helpful
@dineshezeikel25787 ай бұрын
Nice explanation
@danyasklyanichenko8176 ай бұрын
man, you are the best. Thank you for this tutorial😘
@davidcordero396 Жыл бұрын
Clear and simple. Thanks alot!
@hamzarafi53872 жыл бұрын
EZ explaination of multithreading..GG boi
@pepf64Ай бұрын
I wish you made more c# tutorials on LinQ stuff and IEnumerables, etc.
@Stellanovum2 жыл бұрын
Thanks for the tutorial! It was nice and easy to understand!
@Anuli-Edom8 ай бұрын
Awesome work here.
@mythos03 Жыл бұрын
fantastic video series, thank you so much for your work!!!
@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.
@khizerhussain76132 жыл бұрын
Amazing tutorial
@MahmoudSaadawy2 жыл бұрын
Amazing! Please upload more C# Tutorials about real projects.
@mohammadbaghervahedi14202 ай бұрын
Helpful tutorial 😇
@imperadordogado61892 жыл бұрын
Simple and clear. Ty bro!
@tech-zenth Жыл бұрын
Nice example
@bbjeppson4 ай бұрын
Thank you for these!
@gulbaharnecefzade367 Жыл бұрын
Awesome🤩👍
@steirerdis2 жыл бұрын
Thank you! This short clip helped alot!
@_gabrielzin_68623 жыл бұрын
you're amazing bro, nice video!
@megahombre242 жыл бұрын
This was perfect, thanks a lot!!!
@jonbakari13303 жыл бұрын
many thanks, I like your english - much better as my
@jimzoo5254 Жыл бұрын
nice vedio.
@kamalpoladov55312 жыл бұрын
You are amazing. I really like your videos 👍🏻
@alexander50522 жыл бұрын
Great explanation! Thank you!!!
@JimboyLearn-mc2zr6 ай бұрын
OMG, clicking through all the indian videos till I finally find a proper english video about this topic...
@surajwagh36542 жыл бұрын
Superb
@KhalidIbnWalid15 Жыл бұрын
Very well explained. Thanks Bro 🙂. A video on C# lambda would be useful as I didn't understand the bit about () => Thread1("thread #1").
@rifatislamrakesh2 жыл бұрын
please add more tutorials. async await would be great for next topic !
@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