Threads and Grand Central Dispatch in Swift

Поділитися
Вставка
  • Опубліковано 15 лип 2024
  • 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 UA-cam Channel Application - Free **********
    stewartlynch.gumroad.com/l/obsjz
    Stewart Lynch's UA-cam Channel
    / stewartlynch
    CreaTECH Solutions Website
    www.createchsol.com
    Stewart Lynch's GitHub
    github.com/StewartLynch
  • Наука та технологія

КОМЕНТАРІ • 65

  • @ZAP1able
    @ZAP1able 4 роки тому +11

    Great explanation

    • @StewartLynch
      @StewartLynch  4 роки тому

      Thanks

    • @tibettenballs4962
      @tibettenballs4962 2 роки тому

      yess. he sounds like a friendly robot.

    • @StewartLynch
      @StewartLynch  2 роки тому +1

      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 роки тому +23

    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 Рік тому +2

    I really don't think anyone can explain it better then you did, Great job.

  • @anushkamukhopadhyay8540
    @anushkamukhopadhyay8540 2 роки тому +6

    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!

  • @leopapilaya
    @leopapilaya 3 роки тому

    Awesome! Your explanation is so clear!

  • @M1kaTck
    @M1kaTck 3 роки тому

    This was an awesome explanation, thank you.

  • @rungxanh2901
    @rungxanh2901 3 роки тому

    Really really intuitive. Thank you very much Stewart 🙏🏻

  • @user-wi3cy8hq3v
    @user-wi3cy8hq3v 3 роки тому

    Amazing explanation, thanks!

  • @noctecoder6252
    @noctecoder6252 3 роки тому

    Best explanation with actual examples. Thank you for making these kind of tutorials. Great job.

  • @hongnhannguyen1509
    @hongnhannguyen1509 3 роки тому

    Great video, thanks very much!

  • @amari9773
    @amari9773 2 роки тому

    Much appreciated video. Well done.

  • @DhavalHNena
    @DhavalHNena 2 роки тому

    Very helpful and greatly explained!

  • @myrondulay8628
    @myrondulay8628 3 роки тому

    Very detailed explanation. That log utility is useful.

  • @mayankkhursija6290
    @mayankkhursija6290 3 роки тому

    Great content.. its rare to see that there is no single dislike... Keep it up..

  • @victorsebastian732
    @victorsebastian732 3 роки тому +1

    Wonderful explanation. My long time doubts about GCD have been clarified. Thank you!!

  • @Mike-vr5jl
    @Mike-vr5jl 2 роки тому

    The greatest explanation of GCD i've found so far, Thanks

  • @AchrafTrabelsiMobileDeveloper
    @AchrafTrabelsiMobileDeveloper 2 роки тому

    Thank you for this awesome video !

  • @chetanpatil1750
    @chetanpatil1750 2 роки тому

    Thanks for making it so simple
    This will really help me
    👍

  • @anshulkoshyari1356
    @anshulkoshyari1356 2 роки тому

    One of the best explanations for this topic out there

  • @vatanachhorn9534
    @vatanachhorn9534 Рік тому

    great video! thank you

  • @arkemal
    @arkemal Рік тому

    Very nice explanation. Thanks

  • @rootx9608
    @rootx9608 Рік тому

    Best video on swift threading thank you :))

  • @hamidkia5035
    @hamidkia5035 Рік тому

    I don't know how to thank you, for training very nice 👏👏👏

  • @leonciocastillo6433
    @leonciocastillo6433 3 роки тому

    You won a subscription and like because this video has a wonderful content. Keep up the good work.

  • @shreyakgodala3240
    @shreyakgodala3240 3 роки тому

    Great resources for preparing for iOS interviews

  • @lucasdebritoarruda7831
    @lucasdebritoarruda7831 2 роки тому +1

    By far, the best Swift programming content on UA-cam. Thanks for this excellent explanation.

  • @Joe-qv2jo
    @Joe-qv2jo 2 роки тому

    Awesome thanks 🙏

  • @ekkogaming5461
    @ekkogaming5461 3 роки тому

    best explanation I have seen so far! Thank you.

    • @StewartLynch
      @StewartLynch  3 роки тому +1

      Thanks, Glad you liked this video.

  • @hunghoauc423
    @hunghoauc423 2 роки тому

    It's very useful for me

  • @paracartoon
    @paracartoon 2 роки тому

    This is such a useful video! Thank you so much!

  • @simpleaspossible6777
    @simpleaspossible6777 4 роки тому

    So nice, keep working

  • @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.

  • @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.

  • @vinothsivanandam8345
    @vinothsivanandam8345 2 роки тому

    fully watched

  • @user-xv3lr6mb6g
    @user-xv3lr6mb6g 3 роки тому

    Большое спасибо !

  • @herman3725
    @herman3725 Рік тому

    Takk!

  • @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?

  • @hossin7752
    @hossin7752 5 місяців тому

    great

  • @multitudes389
    @multitudes389 2 роки тому

    👏🏻👏🏻👏🏻

  • @mhfs61
    @mhfs61 3 роки тому

    👍🏼👍🏼👍🏼

  • @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?

  • @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 UA-cam 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 роки тому +1

      @@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?