Multi-threading with background threads and queues in Xcode | Continued Learning #17
HTML-код
- Опубликовано: 6 окт 2024
- In this video we will learn how to properly use background threads, also known as background queues. By default, all of the code that we write in our apps is executed on the "main thread", however, if the main thread ever gets overwhelmed with tasks, it can slow down, freeze, or even crash our app. Luckily, Apple provides us with easy access to many other threads that we can use to offload some of the work!
We will review how to add different threads, how to perform tasks on a background thread, and how to return back to the main thread afterward. As we get into the second half of this course, we will begin to use background threads more often as we begin to do data intensive tasks, such as downloading data from the internet.
Next video: • How to use weak self i...
Last video: • Core Data relationship...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-t...
DISCORD: / discord
GITHUB: github.com/Swi...
SAY THANKS: www.buymeacoff...
Man, I binge watching your videos! I think you are one of the best instructor next to Paul Hudson. Your teaching style is clear and very easy to grasp. Keep on going ✊🏼
Thanks Mike! 😃
Million% Agree! Between Nick, Paul and Ray Wenderlich you can master any iOS concept.
@@mystride I'll third that!
Hands down the best video I've been seen about this topics. Thanks !!
You are going to get sick of me telling you how well you are doing with this course. Once again thank you.
I don't think I'll every get tired! Thanks again for the support Paul.
This is the perfect tutorial. No bells and whistles, just straight to the subject! Thank you!!!
Man, you are a blessing. Keep up the good work. Thank you Nick
Best SwiftUI course! hands down
Nice video, are you a teacher?. I've not seen anyone explain as good as you do. By watching your videos I learnt swift and swiftUI from scratch.
Hi Ojukwu! Welcome to my channel & thanks for the comment! I am just a Swift developer who enjoys teaching others how to make apps. Learning to code can be hard, but it doesn't have to be. I'm trying to make it as easy as possible :)
i can't thank you enough for everything that you are doing for the community I swear to god when I finally start learning I will come back and start supporting you on kofi!
Thank you Nick! This was really easy to follow. Great job as always
short, very in formative. Thank you
Great video! As always - perfect explanation! Little addition: you can also check the thread if you just set a breakpoint.
Man !!!! Your explanation is incredible !
Thank you so much for this awesome videos. I need to learn about threads and this video is just perfect for my current level. I'm looking forward for watching all of the series!.
This is a fantastic video. Very clear explanation of background threads with simple clear code. Subscribed because of this video. 👍🏽
Glad it was helpful!
This video is excellent and so important for who want to became good developer
very exciting, I enjoyed every minute. thanks
perfect as always. thank you Nick!
Great video. 👏
change 100 to 10000 and you'll see multiple treads running to load data. it's far more clear what is happening than the 100
Amazing explanation!! Thank you so much 🙏🏻
Just a note that might help someone else: if (like me) you click on the spray bottle and then you see No Debug Session, make sure you click on the Run button to start the simulator.
Ok I worked on timers and notifications yesterday, now I'm back to [maybe] understand Background Threads
Awesome, Nick! Thank you.
thanks for this graphic explanation !
Glad it was helpful!
Thanks for the video Nick...❤️
Thanks Nick, perfect explanation.
Only one question, Thread.current shows for example thread number 8 and in CPU window it is running in Thread 11. Numbers are diffirent?
Hey Charlie, the thread that prints out should be the same as the CPU window. It's possible that it opened up more than 1 background thread so there was confusion, but if #8 is printing on the console, then #8 should be lighting up on the CPU window at the same time. When debugging, I would rely on what's being printed to the console because there's no room for human error haha
Learned alot Thanks :)
You're welcome Vamsi :)
Can you cover Firebase PLS
Thank you!!!
Thank you man
Thank you! this is really helpful for me!
Thanks Zhu!
well explained
I don't see spikes on my background threads at all. After printing current threads it shows downloading happened on thread 6 but I only see spikes on main thread. Can somebody help me understand this?
amazing!!!!!
Thanks
Great! Thanks man
What % utilization on the main thread do you consider too high? Where do you get worried?
Good!
You are my jedi
how is possible to understand in Xcode with part of the code is loading a specific thread?
💯