Swi Interview Questions for Freshers List some advantages and disadvantages of using ios Swi


Download 0.71 Mb.
Pdf ko'rish
bet22/27
Sana09.10.2023
Hajmi0.71 Mb.
#1696547
1   ...   19   20   21   22   23   24   25   26   27
Bog'liq
0b951f3e909d09b66eb8f74930008ded79a64d5e79248dc67824bd9e2aadd4fa

33. What is a Swi module?
Page 28
© Copyright by Interviewbit


Swi Interview Questions
A single unit of code distribution in ios Swi is referred to as a module. The Swi
"import" keyword can be used to import a framework or application that has been
created and shipped as a single unit. In Swi , each Xcode build target is treated as an
independent module. An example of using the "import" keyword is given below:
import UIKit
34. What do you understand about Grand Central Dispatch
(GDC)?
GCD (Grand Central Dispatch) is a low-level API for controlling several operations at
the same time. This notion is employed to aid in the enhancement of application
performance. This procedure is used to handle numerous jobs at once. The most
relevant API for multitasking with Async and Sync programming in iOS is Grand
Central Dispatch (GCD).
Dispatch Queue: The task is managed in FIFO (First In First Out) order by the
Dispatch Queue. Dispatch queues are thread-safe because they can be accessed
by several threads at the same time.
Concurrent: This process has started numerous tasks at the same time but does
not know when they will finish. It can be completed in whatever sequence you
want. They perform one or more things concurrently at the same time. The work
is finished in the order in which it was queued, not in the order in which it was
completed.
Serial: A single task will be executed at a time. It is possible to use it to
synchronize access to a certain resource.
Sync: A er the work is completed, a synchronous function returns control to the
caller.
Asynchronous: An asynchronous function returns instantly a er ordering a job
to begin but does not wait for it to finish.
Swi Programming

Download 0.71 Mb.

Do'stlaringiz bilan baham:
1   ...   19   20   21   22   23   24   25   26   27




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling