What is Mutex in C++ (Multithreading for Beginners)

  Рет қаралды 48,130

CodeBeauty

CodeBeauty

Күн бұрын

Пікірлер: 87
@CodeBeauty
@CodeBeauty Жыл бұрын
📚 Learn programming with these Free E-Books ⬇ C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook 🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/ Experience the power of practical learning, gain career-ready skills, and start building real applications! This is a step-by-step course designed to take you from beginner to expert in no time! 💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10). Use it quickly, because it will be available for a limited time. Code: #include #include #include using namespace std; mutex carMutex; void driveCar(string driverName) { //lock_guard carLock(carMutex); unique_lock carLock(carMutex); cout
@MrRohitChauhan1
@MrRohitChauhan1 Жыл бұрын
Hi, In one of your videos "Build your first multithreaded application - Introduction to multithreading in modern C++" how its running thread without using join() function
@cipher_algo_19
@cipher_algo_19 11 ай бұрын
threading is not working mam for c++ in vscode
@cipher_algo_19
@cipher_algo_19 11 ай бұрын
if declare the thread keyword , then it shows that thread is undefined even after declaring the thread header file in c++ program. Please give any solutions to this problem mam
@carmelostagno6352
@carmelostagno6352 Жыл бұрын
I think it will be another pill of knowledge to improve our study about C++. Thanks Saldina for all!
@amelccc
@amelccc Жыл бұрын
great explanation, very simplified, thanks
@phoebewell3653
@phoebewell3653 Жыл бұрын
The best teacher of all times! 🔥🔥🔥
@Sam-k1i2i
@Sam-k1i2i Жыл бұрын
you made yet another complex topic very easy to understand, thank you
@hsngraphics8228
@hsngraphics8228 Жыл бұрын
I've been watching your videos for a while now, and I'm pleasantly surprised that you don't include any ads on your channel. It really highlights your dedication to education. We're eagerly anticipating your upcoming programming course!
@codeoasis1180
@codeoasis1180 Жыл бұрын
Great video as always, thank you 👍
@MilesGerome
@MilesGerome Жыл бұрын
been looking for this, great :D
@deanmorrison6254
@deanmorrison6254 Жыл бұрын
excelent as always
@christopherrice891
@christopherrice891 Жыл бұрын
I watch a lot of Saldina's older C++ coding videos and she used to wear a Bat-Man t-shirt quite often. I wonder whatever became of that Bat-Man t-shirt🤔🤨?
@woodperfekt
@woodperfekt Жыл бұрын
Your method of instruction is really good. First explaining the concept then directly followed by an example implementing the concept. Thanks for your videos.
@milkamilkica1935
@milkamilkica1935 Жыл бұрын
thank you for this video Saldina
@OgunsolaMercy-du9if
@OgunsolaMercy-du9if Жыл бұрын
I tried searching for a particular string in a file but all to no avail. Please any help
@PenseBaixoNivel
@PenseBaixoNivel Жыл бұрын
Thanks, You improved my life 1000 percent Saldina!
@CodeBeauty
@CodeBeauty Жыл бұрын
I'm so glad to hear that! Just work hard and your life will change completely, anything is possible! ❤️
@anon-fz2bo
@anon-fz2bo Жыл бұрын
im not a beginner but i was once & honestly its so much easier to learn programming when u actually understand whats happening. for example, u shd state that the namespace this_thread is defined in the header and so is chrono. sleep_for can then be considered a function and not a static method of the class this_thread. chrono::seconds can also be considered a function although im assuming its actually an explicit constructor or a basic constructor that takes in an int & returns and instance of seconds. only thing i didnt know was the stuff about mutex, so thanks. its better to specify what exactly is happening as apposed to simply expecting that people just copy ur code.
@marym9003
@marym9003 Жыл бұрын
I watched your video about multithreading, and I was hoping that you will publish more videos about that topic. Thanks Saldina ❤
@lsnlst1725
@lsnlst1725 Жыл бұрын
Always the best youtube C++ performer! Thank Saldina!
@fixnemlacika
@fixnemlacika Жыл бұрын
I would really like to see a C# series, it would be really helpful with your teaching style!!
@CodeBeauty
@CodeBeauty 3 ай бұрын
@fixnemlacika I just notice this comment, but it would be very helpful for you to check out my C# practical programming course where you can learn all the necessary skills to start a successful career as a developer, here: codebeautyacademy.com
@joshualloyd6694
@joshualloyd6694 Жыл бұрын
Amazing and simple to understand thankyou!
@1tav0
@1tav0 Жыл бұрын
awesome video i was scared of threads up until i came to your channel. You explain everything so well and its so easy to follow thank you !!!
@martinalcala4823
@martinalcala4823 4 ай бұрын
Such a beauty, and also the c++! New sub!
@CodeBeauty
@CodeBeauty 4 ай бұрын
Thanks, welcome 🥰🥰
@gustavo9758
@gustavo9758 11 ай бұрын
CodeBeauty is on point, both for the code and the coder!
@CodeBeauty
@CodeBeauty 11 ай бұрын
🥰🥰
@yazenyazen4372
@yazenyazen4372 11 ай бұрын
Yes we like topics like determine big o and asynchronous Thank you so much
@uccoskun
@uccoskun 11 ай бұрын
impressively clear instructions...
@MarcsYoutube
@MarcsYoutube Жыл бұрын
Instead of using std::endl, I'd use " " instead. std::endl causes flushing of the output buffer each time it is called, whereas using the newline character does not, which should make it slightly more efficient.
@mertsecen1136
@mertsecen1136 Жыл бұрын
my final was 3 days ago i wish u uploaded this sooner lol
@ferfykins
@ferfykins Жыл бұрын
Any chance you could make a video on why we should choose C++ over other languages?
@hilgicamala2520
@hilgicamala2520 Жыл бұрын
suuuper explanation
@Judgeman-f3q
@Judgeman-f3q 25 күн бұрын
Wow my eyes can not blink anymore
@l.p.1967
@l.p.1967 Жыл бұрын
great video, thanks
@shahnur13
@shahnur13 Жыл бұрын
Even unique_lock works without manually unlocking as mentioned in line 13. The mutex object automatically gets unlocked on end of scope.
@ignacionr
@ignacionr Жыл бұрын
You say "mutex is a term related to threading in C++" and you got the first part right. The problem is that it is not really a C++ concept, but in general a threading concept that is pretty much used on every programming language that deals with a scheduler, including at least C#, C, Java, Delphi, Visual Basic, etc.
@gowthamkumars365
@gowthamkumars365 2 ай бұрын
perfect, perfekt, savršeno
@Bombastic0013
@Bombastic0013 6 ай бұрын
Hello, i don't understand why the endl in your code is not effective at 5:50 and it is later...
@nevram0101
@nevram0101 Жыл бұрын
What syntax use in embedded C++
@bartoszskowronski
@bartoszskowronski Жыл бұрын
Great video. what next? I vote for shared memory between separate programs with using because 1 only one program needs to write data, but another 3 programs need only to read.
@mrsunshine268
@mrsunshine268 Жыл бұрын
Is the course not launched yet?
@san-joshuabarrett
@san-joshuabarrett Жыл бұрын
You always remind me of Nadia from American Pie for some reason. I like it 🤠
@PawelManU7
@PawelManU7 Жыл бұрын
is it possible to record something about Boost library? There is plenty materials about STL but actually there is lack about Boost
@lindelanitshikalange7537
@lindelanitshikalange7537 Жыл бұрын
Hi ...can you please do a tutorial on Huffman coding
@VastavPansuriya
@VastavPansuriya Жыл бұрын
What is iterator, i want to learn and from learning from text format is nightmare can you explain?
@woodperfekt
@woodperfekt Жыл бұрын
Hi, Please make a video about writing & reading from the serial port :) ... ..... when you have the time ... thanks
@TRY-dm3bd
@TRY-dm3bd 11 ай бұрын
Hello can make tutorial about c programming
@mini-moose
@mini-moose Жыл бұрын
Hopefully she’s wearing something from my childhood like back to the future gear or something
@jakkdlaw
@jakkdlaw Жыл бұрын
Did I miss something?
@talha_coding_tutor
@talha_coding_tutor 8 ай бұрын
Saldina I Want To Create A Query-Based CLI Calculator in C++ that takes batch input using a vector of string and extract numbers and operators using sstream ,,, please guide me !.
@ferfykins
@ferfykins Жыл бұрын
Do you make videos on python or java?
@2alearning115
@2alearning115 Жыл бұрын
Hello Saldina, can u please make a video on " how to access hardware like camera, microphone etc." And how capture image Using c++
@Igor-my6ml
@Igor-my6ml Жыл бұрын
Beautiful and smart, everything opposite of me.
@kumaresantanja6152
@kumaresantanja6152 Жыл бұрын
Also explain cpp 11 topics
@punjita810
@punjita810 Жыл бұрын
hi can you make mini video of how i can play a c++ code writed on vs code directly on cmd throw vs studio play button. like you opp c++ video
@kateranksheavenmanagement
@kateranksheavenmanagement Жыл бұрын
Please teach on how to build a webbrowser in c++
@PenseBaixoNivel
@PenseBaixoNivel 11 ай бұрын
Saldina,Why do you think, that Linus Torvalds didn't choose C++ for the Linux kernel?
@CodeBeauty
@CodeBeauty 11 ай бұрын
Lover levew control of the system 😄
@PenseBaixoNivel
@PenseBaixoNivel 11 ай бұрын
@@CodeBeauty I'm learning a Assembly now... with one youtuber brazillian Called Fernando Anselmo (he is so great teacher too) ^^
@mattiamarchese6316
@mattiamarchese6316 Жыл бұрын
You're the most Indian youtuber among the Russian youtubers.
@阿宏-d5q
@阿宏-d5q Жыл бұрын
請問以後有問題的話可以請教妳嗎?!
@carmelostagno6352
@carmelostagno6352 Жыл бұрын
I am eagerly waiting for your future course. Missing a lot?
@CodeBeauty
@CodeBeauty Жыл бұрын
I've pretty much wrapped up my part of the work and created a programming course that will take you from beginner to expert level! Now, it's in the hands of others to handle the company setup, establish the right processes and structures, ensure that everything runs smoothly and that it complies with the law and best practices, so that course is available to everyone around the world, I don't have experience with this bureaucratic aspect of the work unfortunately, otherwise, I'd work day and nigh to establish it asap. So, all I can do at this point is wait, but since I'm not a big fan of waiting, I'm making the most of this downtime by refining everything and adding even more top-notch material to the course. 😊
@carmelostagno6352
@carmelostagno6352 Жыл бұрын
@@CodeBeauty Thank you very much. I appreciate your response and wish you fruitful work for an excellent result.
@johnxina7496
@johnxina7496 11 ай бұрын
did you stop uploading?
@hsngraphics8228
@hsngraphics8228 Жыл бұрын
The reason for limited leads on your channel might be due to KZbin's algorithm, which favors frequent video uploads.
@kardohirany
@kardohirany Жыл бұрын
❤❤❤❤❤
@tuazulyrojoeljean
@tuazulyrojoeljean Жыл бұрын
So, where is she? It's been 3 months, I thought she was about to launch a new course
@xtedixus
@xtedixus 3 ай бұрын
👍
@rezahajivand7498
@rezahajivand7498 Жыл бұрын
Hello 🎉🎉🎉🎉🎉
@vvkbees6473
@vvkbees6473 8 ай бұрын
😻
@wilgarcia1
@wilgarcia1 Жыл бұрын
😍😍😍😍😍😍
@eyesopen6110
@eyesopen6110 5 ай бұрын
scoped_lock
@roelandriemens
@roelandriemens Жыл бұрын
I think Elon has more than enough cars 🤓
@Secret-tp6jl
@Secret-tp6jl Жыл бұрын
red lipstick suits you
@JesseOsazeOjo-Eriamiatoe
@JesseOsazeOjo-Eriamiatoe Жыл бұрын
I dont understand procedural programming
@hermes-w3
@hermes-w3 Жыл бұрын
Saldina iz Bosne.?
@Marek-MAROGO
@Marek-MAROGO Жыл бұрын
I have question: is Elon your boyfriend?😁
Exception handling in C++ (How to handle errors in your program?)
24:46
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Master Multithreading : Thread Pool In C++
20:19
CppNuts
Рет қаралды 14 М.
SMART POINTERS in C++ (for beginners in 20 minutes)
24:32
CodeBeauty
Рет қаралды 106 М.
What are header files in C++ ( PROGRAMMING TUTORIAL for beginners)
23:54
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 223 М.
Lambda expressions in modern C++ (in depth step by step tutorial)
18:35
Threads in C++
11:35
The Cherno
Рет қаралды 370 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН