Multi-threading with background threads and queues in Xcode | Continued Learning #17

preview_player
Показать описание
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.

🤙 WELCOME BACK 🤙

Рекомендации по теме
Комментарии
Автор

This is the perfect tutorial. No bells and whistles, just straight to the subject! Thank you!!!

cyrilgarcia
Автор

You are going to get sick of me telling you how well you are doing with this course. Once again thank you.

paulraggett
Автор

Hands down the best video I've been seen about this topics. Thanks !!

camilol-shide
Автор

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 ✊🏼

MrMichaelcaesario
Автор

Man, you are a blessing. Keep up the good work. Thank you Nick

collinsmuthomi
Автор

Thank you Nick! This was really easy to follow. Great job as always

coffeeCatPeanutDust
Автор

Man !!!! Your explanation is incredible !

navysen
Автор

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!

AADITYAAA
Автор

very exciting, I enjoyed every minute. thanks

dugrut
Автор

Great video! As always - perfect explanation! Little addition: you can also check the thread if you just set a breakpoint.

vladimirmoor
Автор

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!.

alexsal
Автор

This is a fantastic video. Very clear explanation of background threads with simple clear code. Subscribed because of this video. 👍🏽

rogerdeutsch
Автор

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.

ojukwuezechukwu
Автор

This video is excellent and so important for who want to became good developer

BSharing
Автор

Amazing explanation!! Thank you so much 🙏🏻

sakshipatil
Автор

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.

pitmanra
Автор

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?

saurabh
Автор

Ok I worked on timers and notifications yesterday, now I'm back to [maybe] understand Background Threads

dugrut
Автор

Thank you! this is really helpful for me!

jinglongzhu
Автор

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?

Nunny
welcome to shbcf.ru