Threads and Grand Central Dispatch in Swift

  Рет қаралды 21,317

Stewart Lynch

Stewart Lynch

Күн бұрын

In this video, we are going to take at Threading and Grand Central Dispatch in Swift.
We will investigate what threads and Queues are as well as the Grand Central Dispatch or CGD, the API for managing your queues. In the process, we will also touch on synchronous vs asyncrhonous code and finish off with an overview of DispatchGroups.
Starter Project: www.createchsol.com/StarterPr...
******* Download my StewartLynch KZfaq Channel Application - Free **********
stewartlynch.gumroad.com/l/obsjz
Stewart Lynch's KZfaq Channel
/ stewartlynch
CreaTECH Solutions Website
www.createchsol.com
Stewart Lynch's GitHub
github.com/StewartLynch

Пікірлер: 65
@ZAP1able
@ZAP1able 4 жыл бұрын
Great explanation
@StewartLynch
@StewartLynch 4 жыл бұрын
Thanks
@tibettenballs4962
@tibettenballs4962 2 жыл бұрын
yess. he sounds like a friendly robot.
@StewartLynch
@StewartLynch 2 жыл бұрын
No one is forcing you to watch.
@tibettenballs4962
@tibettenballs4962 2 жыл бұрын
@@StewartLynch once again, a friendly compliment. you are a great teacher. better than most I have come across.
@tibettenballs4962
@tibettenballs4962 2 жыл бұрын
@@StewartLynch and your right, nobdoy is forcing me to watch. but my mom is addicted to meth, and i dont have a father., i have to take care of my little brother and ive been coding since 14, so i do kiind of have to watch your videos! thanks for being a jerk tho!
@StewartLynch
@StewartLynch 4 жыл бұрын
At 4.51 in the video, I mistakenly say that the .default QoS is between .utility and .userInteractive. The slide is accurate though. .default is between .utility and .userInitiated. Sorry about that.
@lynskyrd
@lynskyrd Жыл бұрын
you turned the light on for me with respect to threading... thank you.
@MazenBaddad
@MazenBaddad Жыл бұрын
I really don't think anyone can explain it better then you did, Great job.
@StewartLynch
@StewartLynch Жыл бұрын
Thanks
@anushkamukhopadhyay8540
@anushkamukhopadhyay8540 2 жыл бұрын
You explain things so well, I feel like I'm at my favorite professor's lecture. Thank you so much, this is a fantastic resource!
@StewartLynch
@StewartLynch 2 жыл бұрын
Thank you for your kind words
@leopapilaya
@leopapilaya 3 жыл бұрын
Awesome! Your explanation is so clear!
@myrondulay8628
@myrondulay8628 3 жыл бұрын
Very detailed explanation. That log utility is useful.
@noctecoder6252
@noctecoder6252 3 жыл бұрын
Best explanation with actual examples. Thank you for making these kind of tutorials. Great job.
@mayankkhursija6290
@mayankkhursija6290 3 жыл бұрын
Great content.. its rare to see that there is no single dislike... Keep it up..
@victorsebastian732
@victorsebastian732 3 жыл бұрын
Wonderful explanation. My long time doubts about GCD have been clarified. Thank you!!
@AchrafTrabelsiMobileDeveloper
@AchrafTrabelsiMobileDeveloper 2 жыл бұрын
Thank you for this awesome video !
@Mike-vr5jl
@Mike-vr5jl 2 жыл бұрын
The greatest explanation of GCD i've found so far, Thanks
@anshulkoshyari1356
@anshulkoshyari1356 2 жыл бұрын
One of the best explanations for this topic out there
@rungxanh2901
@rungxanh2901 3 жыл бұрын
Really really intuitive. Thank you very much Stewart 🙏🏻
@arkemal
@arkemal Жыл бұрын
Very nice explanation. Thanks
@rootx9608
@rootx9608 Жыл бұрын
Best video on swift threading thank you :))
@lucasdebritoarruda7831
@lucasdebritoarruda7831 2 жыл бұрын
By far, the best Swift programming content on KZfaq. Thanks for this excellent explanation.
@StewartLynch
@StewartLynch 2 жыл бұрын
Thanks for your comment
@leonciocastillo6433
@leonciocastillo6433 3 жыл бұрын
You won a subscription and like because this video has a wonderful content. Keep up the good work.
@StewartLynch
@StewartLynch 3 жыл бұрын
Awesome, thank you!
@M1kaTck
@M1kaTck 3 жыл бұрын
This was an awesome explanation, thank you.
@ekkogaming5461
@ekkogaming5461 3 жыл бұрын
best explanation I have seen so far! Thank you.
@StewartLynch
@StewartLynch 3 жыл бұрын
Thanks, Glad you liked this video.
@hamidkia5035
@hamidkia5035 Жыл бұрын
I don't know how to thank you, for training very nice 👏👏👏
@DhavalHNena
@DhavalHNena 2 жыл бұрын
Very helpful and greatly explained!
@chetanpatil1750
@chetanpatil1750 2 жыл бұрын
Thanks for making it so simple This will really help me 👍
@user-wi3cy8hq3v
@user-wi3cy8hq3v 3 жыл бұрын
Amazing explanation, thanks!
@hongnhannguyen1509
@hongnhannguyen1509 3 жыл бұрын
Great video, thanks very much!
@amari9773
@amari9773 2 жыл бұрын
Much appreciated video. Well done.
@vatanachhorn9534
@vatanachhorn9534 Жыл бұрын
great video! thank you
@paracartoon
@paracartoon 2 жыл бұрын
This is such a useful video! Thank you so much!
@StewartLynch
@StewartLynch 2 жыл бұрын
You're so welcome!
@manwithllama
@manwithllama 2 жыл бұрын
I'm a total newbie and I could follow this. So many other presenters don't put space between their spoken sentences. A learner's brain falls behind fast and never quite catches up. Not here. Great cadence Stewart.
@StewartLynch
@StewartLynch 2 жыл бұрын
Thanks. I was a school teacher in another life so I think I understand. I taught math and learned that I had to pause to let things sink in.
@Joe-qv2jo
@Joe-qv2jo 2 жыл бұрын
Awesome thanks 🙏
@hunghoauc423
@hunghoauc423 2 жыл бұрын
It's very useful for me
@shreyakgodala3240
@shreyakgodala3240 3 жыл бұрын
Great resources for preparing for iOS interviews
@nileshjdarji
@nileshjdarji 2 жыл бұрын
This is one of finest explanations out there for Queues. Quick question, what is an operation queue and where does it fall in what you have just shown in this video.
@simpleaspossible6777
@simpleaspossible6777 4 жыл бұрын
So nice, keep working
@user-xv3lr6mb6g
@user-xv3lr6mb6g 3 жыл бұрын
Большое спасибо !
@StewartLynch
@StewartLynch 3 жыл бұрын
You are welcome
@shurale85
@shurale85 2 жыл бұрын
Simple and concise explanation, thanks a lot! Can you pls clarify what is task, what is resume, what is NSoperation queue that you used in demo?
@vinothsivanandam8345
@vinothsivanandam8345 2 жыл бұрын
fully watched
@herman3725
@herman3725 Жыл бұрын
Takk!
@multitudes389
@multitudes389 2 жыл бұрын
👏🏻👏🏻👏🏻
@hossin7752
@hossin7752 5 ай бұрын
great
@aldairraulcosetitocoral5659
@aldairraulcosetitocoral5659 4 жыл бұрын
Dear Stewart. When you use groups and when you declare a queue variable as Global, it means the main thread or queue will be notify?
@mhfs61
@mhfs61 3 жыл бұрын
👍🏼👍🏼👍🏼
@tibettenballs4962
@tibettenballs4962 2 жыл бұрын
start a discord server. my channel has over 500 members, and around 10-15 active at any given time. We work on projects, and solve leet-code questions. your tutor style would attract a valuable crowd. many would be ingratiated to be under your tutelage. semper fi brother. Contextually, My YT channel averages under 1K views. there is potential in what you are doing and more should know about you. Ps: i would conjecture, given your teaching style and the lack of swifty ds and algo on YT is a benefactor to you market-share positioning (audience) within this cesspool-algo-drive-YT-world we live in.
@followerOfJesus723
@followerOfJesus723 2 жыл бұрын
OMG, the explanation for synchronous vs asynchronous was very bad, although it was technically correct. You explain it in a way that will make new programmers conflate asynch vs synch with serial vs concurrent.
@StewartLynch
@StewartLynch 2 жыл бұрын
Thanks for taking the time to comment. Perhaps you could point us all to a clearer definition that would make sense in this context. I agree that the concepts often get confused and misrepresented. Again, thanks for any feedback you can give that would provide more clarity. And if there are other aspects of this video that are unclear, please comment as well. It is ot my intention to confuse.
@alimehmood8654
@alimehmood8654 4 жыл бұрын
Default case for QoS is shown to be between .userInitiated and.utility but you have said that it is between .userInteractive and .utility. Which one is it?
@StewartLynch
@StewartLynch 4 жыл бұрын
it is between .UserInitiated and .Utility as it shows, not what I said. I wish there was a way to go back and correct audio on KZfaq without having delete and repost the video. Thanks for catching that.
@alimehmood8654
@alimehmood8654 4 жыл бұрын
Stewart Lynch thanks. You can try putting this correction in a pinned post.
@StewartLynch
@StewartLynch 4 жыл бұрын
@@alimehmood8654 Done. Thanks Ali
@maqusss
@maqusss Жыл бұрын
The ContentViews dogVM var should be @StateObject instead of @ObservedObject. Also there is error in getDogWithSession() at 17:00 in line 59. There is Data(contentsOf:) but we should just use data from completion handler.
@StewartLynch
@StewartLynch Жыл бұрын
Agreed, but this video was created BEFORE @StateObject was available. @StateObjecet was introduced in iOS 14 and I crated this video while still. using iOS 13
@user-yd9xy3rb4x
@user-yd9xy3rb4x 3 жыл бұрын
so synchronously .sync means - FIFO first in first out?
Introduction to Generics in Swift
24:14
Stewart Lynch
Рет қаралды 5 М.
When to Semaphore vs Dispatch Group! Careful Multithreaded Shared Resource
11:11
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 34 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 4,8 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 42 МЛН
Concurrency and Grand Central Dispatch in iOS
12:03
Clarissa Calderon - Swift Bits
Рет қаралды 1,5 М.
Deep Dish Swift 2024 Talk - Stewart Lynch
39:10
Stewart Lynch
Рет қаралды 3,8 М.
OperationQueue - BlockOperation in Swift  || iOS interview Questions
12:20
Weak and Unowned Self Closure Memory Leak Fixes
12:21
Lets Build That App
Рет қаралды 56 М.
Unit Testing a SwiftUI application in Xcode | Advanced Learning #17
1:47:03
Swiftful Thinking
Рет қаралды 35 М.
DispatchQueues: Serial, Concurrent, Async, & Sync - Overview
6:02
Опыт использования Мини ПК от TECNO
1:00
Андронет
Рет қаралды 766 М.
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1,2 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,6 МЛН