Difference between Synchronous and Asynchronous in iOS swift?

Solution:

Synchronous:

Synchrounous waits until the process finished after that only the next process will continue executing.
It will be waiting to the user to complete the previous task.

Asynchronous:

Asynchronous will be the simultaneous execution of process.Like another process will not wait for that process.It will be executing in the background.After the completion we can display the process result with its data.

For example loading the image in the tableView will be executed using the asynchronous task because user don't want to wait for the result of image it will be loaded in the background. 

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift