https://github.com/mallikarjunh/threads-multithreading
https://github.com/mallikarjunh/threads-multithreading
concurrency concurrency-patterns concurrent-programming gsd ios multithreading queue swift thread threading
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mallikarjunh/threads-multithreading
- Owner: MallikarjunH
- Created: 2021-09-13T08:32:39.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-18T11:02:24.000Z (about 4 years ago)
- Last Synced: 2025-01-15T17:38:39.925Z (over 1 year ago)
- Topics: concurrency, concurrency-patterns, concurrent-programming, gsd, ios, multithreading, queue, swift, thread, threading
- Language: Swift
- Homepage:
- Size: 441 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Multithreading in iOS
Production applications will often need to perform heavier operations such as downloading high-resolution images or a executing non-cached database queries. To prevent stalling the main thread (and a hit in frame rate), Apple has provided a few tools to help you out!
1. Grand Central Dispatch
2. NSOperations
3. performSelectorInBackground method on NSObject.
# Concurrency
Executing multiple tasks at the same time in a scalable manner
Ways to achieve concurrency in iOS - Threads, Dispatch Queues, Operation Queues.
Ways to achive Multithreadubg in iOS - Threads, GCD(Grand Central Dispatch)
Different Types of Dispatch Queues - Main Queues, Concurrent Queues (global dispatch queue), Serial Queue (private queue)