Main Thread, Sync vs Async and Deadlocks in Swift

  Переглядів 12,456

iCode

iCode

3 роки тому

In this video, you will get to know about deadlocks, how they are created in an iOS app (Swift), what they can lead to, and how they can be fixed. Also, Synchronous blocks vs Asynchronous blocks, why UI should be updated on Main Thread, and practical implementation of all these theories in Swift.
A good article on why UI should be updated on main thread 👇🏼
/ ios-why-the-ui-need-to...

КОМЕНТАРІ: 37
@bohdanbochkovskyi852
@bohdanbochkovskyi852 Рік тому
Thank you for the explanation!
@brindham4990
@brindham4990 2 роки тому
Clear explanation with example👌🙂
@aafaqahmed2265
@aafaqahmed2265 2 роки тому
Awesome explanation for this topic out there, Never heard details about this topic this deep. Keep up the good work!
@iCode_Happy_Coding
@iCode_Happy_Coding 2 роки тому
Thanks Aafaq, glad that you liked the video 🙂
@radharamana9762
@radharamana9762 2 роки тому
@@iCode_Happy_Coding Hi Pallav, you are trying to change background color in background thread but that didn't work however add a view in background thread which is expensive operation. Howcome adding a view worked here? My understanding is it should happen in main thread and why it is not crashing for queue1 operation? correct me if my understanding is wrong
@vaishurao4814
@vaishurao4814 2 роки тому
Thanks for neat and clean explanation ! 🤗👍
@iCode_Happy_Coding
@iCode_Happy_Coding 2 роки тому
Thank you Vaishu 🙂
@matrixRule127
@matrixRule127 3 роки тому
Hi Pallav, coming here from linkedin!! Awesome explanation..!! Looking forward for more!! Thanks for sharing.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Glad that you liked it. A new video comes every Sunday, please stay tuned :)
@rushabhsingh2148
@rushabhsingh2148 3 роки тому
Thank you. Need more detail videos on multithreading topics
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Sure Rushabh, I'll keep it in mind while deciding the topic and will try to cover concurrency in upcoming videos.
@priyasrivastava4679
@priyasrivastava4679 2 роки тому
Great explanation!
@iCode_Happy_Coding
@iCode_Happy_Coding 2 роки тому
Glad that you liked it 🙂
@ShuklaAmbuj
@ShuklaAmbuj Рік тому
Nice explanation, so where is the place we can use sync blocks, can you please give some example ?
@akashrevanna5327
@akashrevanna5327 2 роки тому
Thank you brother 😊🙏
@iCode_Happy_Coding
@iCode_Happy_Coding 2 роки тому
Glad that you found the video helpful 🙂
@yogeshrathore919
@yogeshrathore919 3 роки тому
Good content. Keep it up.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Thanks Yogesh, glad that you liked it :)
@Aditya-Pathak
@Aditya-Pathak 3 роки тому
Great Pallav 👍🏼
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Thanks Aditya. I'm glad that you liked it :)
@vivekgupta8827
@vivekgupta8827 3 роки тому
Nicely explained
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Thank you so much 🙂
@maniios7446
@maniios7446 Рік тому
hi ,plz do for closure. where we have to based on differences escaping and non escaping ..
@vaibhavshiledar8213
@vaibhavshiledar8213 3 роки тому
Very nice explanation sir
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Glad you liked it :)
@manish00748
@manish00748 3 роки тому
Please upload one on MVVM with some example. The ones on Internet doesn’t provided a clear context
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Sure Manish. Thanks for the suggestion, I’ll try to cover that. :)
@thahiraf1317
@thahiraf1317 2 роки тому
please add some SwiftUI related videos.
@jai6133
@jai6133 2 роки тому
Why we have sync and async both serial and concurrent task??
@manjeetchoudhary5860
@manjeetchoudhary5860 2 місяці тому
🎉🎉🎉
@radharamana9762
@radharamana9762 2 роки тому
Hi Pallav, you are trying to change background color in background thread but that didn't work however add a view in background thread which is expensive operation. Howcome adding a view worked here? My understanding is it should happen in main thread and why it is not crashing for queue1 operation? correct me if my understanding is wrong
@shiviagarwal9134
@shiviagarwal9134 2 роки тому
Same question. Please reply Pallav.
@vaibhavshiledar8213
@vaibhavshiledar8213 3 роки тому
Please upload video tutorials regularly sir
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Yes, new video will be posted every Sunday. Please stay tuned.
@victorriurean
@victorriurean 4 місяці тому
@anshjain06
@anshjain06 3 роки тому
Good content. Keep it up.
@iCode_Happy_Coding
@iCode_Happy_Coding 3 роки тому
Thanks sir. Glad you liked it.
Copy on Write in Swift | iOS
8:11
iCode
Переглядів 7 тис.
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Переглядів 3,7 млн
When to Semaphore vs Dispatch Group! Careful Multithreaded Shared Resource
11:11
Lets Build That App
Переглядів 45 тис.
Threads and Grand Central Dispatch in Swift
22:14
Stewart Lynch
Переглядів 20 тис.
Inheritance vs Interfaces (Protocols) In Swift
18:43
iCode
Переглядів 13 тис.
Dispatch semaphore and race conditions in Swift Hindi tutorial
11:47
Strong vs. Weak Swift 5: What is Weak Self (Xcode 11, 2020)
16:41
iOS Academy
Переглядів 23 тис.
iOS Developer Mock Interview | Exploration Round
14:09
iCode
Переглядів 5 тис.