c# - Simultaneous Downloads -
i trying build mobile app (ios , windows) downloads list of audio files remote server.
is there criteria 1 needs consider before using different threads downloading files concurrently. (basically need download 7 files concurrently.)
i found in case of ios there parameter
"nsoperationqueuedefaultmaxconcurrentoperationcount" decides count of concurrent operations allowed. there other parameter need consider while developing ios/windows
kindly guide me , newbie mobile development.
regards robert
interestingly here states nsoperationqueuedefaultmaxconcurrentoperationcount
maximum number of download operations managed kernel @ runtime, value can change dynamically through application usage. imagine should download not possible however, exception thrown, handle.
on windowsphone 8
maximum limit 6 active requests @ 1 time here.
for windowsphone 8.1
/ uwp
use backgrounddownloader
, , let manage things you. there reported limit of 5 simultaneous downloads occuring here.
despite platform specifics may limit / open simultaneous download connections, create own downloadmanager
class allowed keep adding download tasks to, regardless of current download queue. manager class able handle entire download process you, including error handling , tracking on specific downloads / kicking off new downloads / notifications of downloads completed / failed.
within set own limits amount of simultaneous connections, , base starting values on ever values wanted per platform, of course within os
restrictions.
to on safe side, never want use maximum number of concurrent downloads available, , use few less, speeds faster , user experience better. better code handling of scenarios prevent download, allow max out simultaneous download connections as possible if wish.
Comments
Post a Comment