H
H
heavybrain2022-02-17 12:17:18
Computer networks
heavybrain, 2022-02-17 12:17:18

How does a computer deal with files opened on the local network?

How does a computer deal with files open on a local network? For example, if 10 people open one Photoshop file in PSD format, which is located on the server. While working with this file, is it loaded into RAM on the server or into memory on the user's computer? Which PC resources are being used at this moment? Also, while changing a file, for example, 10 people are drawing in this file at the same time, does the hard disk work? Or does everything happen in RAM and the hard drive only works while saving?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Drno, 2022-02-17
@Drno

If we are talking about SMB, then the
file is downloaded to the PC, opened in the program
The file is changed, saved to the PC
The file is copied back to the network folder, replacing the file lying there
In order not to overwrite someone else's file, the file is blocked for changes if someone has already opened it. You will not be able to open 1 file for editing from 2 different PCs. The first one will open with full rights, subsequent PCs - only view
Server resources are used only to transfer the file, therefore, you can deploy the file dump almost on the "calculator"

C
CityCat4, 2022-02-17
@CityCat4

For example, if 10 people open one Photoshop PSD file located on the server

No, son, this is fantastic. (C) Advertising The
first person to open it will open it. Everyone else will either receive the alert "The file is already writable by user VASYAN, open a copy?" or simply will not be able to open - depending on the intelligence of the program.
Simultaneous editing of a file by ten people is possible only if the file supports such work. Photo # op does not belong to such a word at all. Even if a dozen people open a dozen copies, they will all overwrite each other's work :)

R
rPman, 2022-02-17
@rPman

How does a computer deal with files open on a local network?
With files (this standard follows from posix, which is implemented one way or another, starting with local files), in addition to read and write operations, there is a blocking operation, when the file, as it were, remains marked how exactly it is allowed to open this file simultaneously by other programs (this determines the instance program that first opened the file), there are options - everything is prohibited, only read is allowed, and it is allowed to read and write, in the latter case there are no transactions, who last wrote - those changes will be saved. None of the participants receive notifications of changes and cannot understand what they are.
Also during file modification, for example, 10 people draw in this file at the same time
This is the most complex functionality, the development of which will require significant efforts and in the end it will be implemented by very few companies, Microsoft with its office documents or Google, many notable large projects boast of the same?
I recommend a private (not beautiful) solution - simultaneous connection to the desktop using vnc/anydesk/teamviewer (the last two have the ability to automatically block remote control, if someone controls the mouse, it shows all mice with nicknames at the same time, plus add voice chat here.
In this case, it will not be possible to edit simultaneously, let alone different parts of the document, but working in the controller-editor mode is very possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question