Coder Social home page Coder Social logo

taojun724's Projects

datastructure icon datastructure

💎Implement basic data structures using C language simulation

httpserver icon httpserver

💡File display, upload and download functions are performed on the TCP server using the HTTP protocol. File display: If the path of the requested URL is a directory, all the directories will be read The file is displayed, and an html page is organized according to each file information in the directory for chunked block transfer, and the file size, type and last modification time are displayed in the browser. File download: first organize the header information, send it to the client, and then read the file data. Send all the data to the body and send it to the client. File upload: create a file in the server's directory, and will be in the body of the request Put the data into it. Since this feature involves the server processing the data, use CGI (Web application) to ensure the security of the server.

project_memory_house_keeper icon project_memory_house_keeper

💡Use a three-tier structure to achieve a highly concurrent memory pool by optimizing the memory allocation structure.The first layer of ThreadCache: use TLS to make each thread have its own independent cache pool for Allocate a certain range of memory to solve the problem of concurrent lock competition in the concurrent offline layer.The second layer of CentralCache: there is only one copy in the world, which provides memory allocation for ThreadCache. And it is recycled and redistributed to realize the algorithm of balanced scheduling.The third layer of PageCache: directly obtain memory from the heap to provide memory to CentralCache, press Pages are allocated, and small chunks of memory are reclaimed from CentralCache, and large chunks of memory are merged. Alleviate memory fragmentation issues.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.