Owncloud Resource allocation methdology

Hi there,
am currently doing a research on OwnCloud for my Thesis,
I am proposed to understand how does OC is working in the back-ground regarding Recourse allocation and content sharing,
what kind of algorithm does owncloud use when storing/ serving clients with data
(if 2 clients requested to upload some file and already there is a fixed-full ammount of storage availabe how does owncloud act ,
what is the methdology owncloud is using to store files on the filesystem and how does it restore it to the client when ask about it…