This invention relates to the field of
computer file system technology, and in particular to a
file system kernel service and high-
concurrency scheduling method based on a unified protocol. The method includes the following steps: Step 1: Starting a receiving thread and a file operation thread on the
server side, the file operation thread including a lightweight thread and a heavyweight thread; Step 2: Listening to the network port through the receiving thread to receive
JSON-formatted requests sent by clients, the requests containing timestamps and operation types; operation types include copy, move, create
directory, delete,
list, and restore; Step 3: Storing the received requests in a receiving
queue; Step 4: Retrieving requests from the receiving
queue and distributing them according to the operation type; Step 5: Executing the operation; This invention exposes file operation capabilities through independent processes and a unified
JSON protocol. The six types of operation
semantics, as well as the
semantics of abort and recoverable deletion, are all uniformly defined at the protocol layer. The dual-type threads and
request queue improve
throughput and stability under multiple clients and large-scale tasks.