LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2015, 10:05 AM   #1
Nexusfactor
Member
 
Registered: Jan 2015
Distribution: Ubuntu
Posts: 50

Rep: Reputation: Disabled
Threading and DropBox


I'm developing an application that might use DropBox as it's storage.

My question is, you can link folders between accounts, so that more than 1 person could upload/download to the same folder.

Do I have to worry about threading? If two people were to copy a file to the desktop from Dropbox at the same time, does Dropbox handle it, or does my application have to handle it?

Example:

Bob and Sarah share a folder using Dropbox. He uploads his Photoshop creations so Sarah can download them and use them in her presentation. If Bob started copying a file from the shared folder, which Sarah is also copying, will I run into a problem? What happens if Bob updates a file that Sarah is in the middle of copying? Do I have to worry about this? Does Dropbox handle it?

Last edited by Nexusfactor; 06-13-2015 at 10:06 AM.
 
Old 08-21-2015, 12:07 PM   #2
Neville Hillyer
Member
 
Registered: Jul 2015
Posts: 57

Rep: Reputation: Disabled
I refuse to use remote storage except for a few POP emails but I am inclined to the view that several people copying a file at the same time will virtually never be an issue with any software.

It will be more risky if a file is being modified at the same time it is being downloaded but most mature software will cope with this.

Send an email to DropBox support and post their reply here.
 
Old 08-26-2015, 12:15 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
You'd have to ask the folks at DropBox how they handle file-locking on their end: do they allow Bob to update a file, if Sarah is also copying it? Or, do they (say...) implement a "versioning" system, in which case the new file that Bob is uploading is "version n+1 of this file," distinct from the "version n" that Sarah is copying (and may continue to copy, without interference).

I am not sufficiently familiar with the DropBox service (in this edge-case ...) to provide an answer, but I am sure that DropBox can, if it is not already a FAQ.
 
  


Reply

Tags
dropbox, python, threading


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Threading gothrog Programming 11 09-27-2010 10:03 AM
Threads and threading TheStarLion Linux - Software 2 08-26-2010 03:38 AM
multi threading slower than single threading on dual core. why? nebojsa.andjelkovic Programming 13 01-30-2007 09:56 PM
Threading JanusPaul Programming 2 02-09-2005 03:39 PM
threading using kde penny21 Programming 6 03-09-2004 04:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration