Git Product home page Git Product logo

csapp's Introduction

基于epoll模型的http服务器 + CSAPP_lab

基于epoll模型的http服务器 + CSAPP一书配套的实验中,其中3个经典实验的源码
###http:基于epoll模型的http服务器
采用epoll模型,实现了统一事件源,并通过时间堆管理定时器回收非活动连接。
通过一个线程池实现对任务的处理,然后使用状态机解析HTTP报文,请求了静态文件。

###malloclab-handout:基于分离适配算法的内存分配器
采用双向链表结构维护分配器,每次分配一个内存块时,通过链表头指针查找到一个大小合适的块,并进行可选的分割。性能较隐式空闲链表分配器提升了大约20%。
###proxylab-handout:实现了一个简单的代理程序
###shlab-handout:Tiny Shell
实现了一个简易shell程序,主要涉及进程管理和信号处理。定义了一个数据结构管理job,实现了job的add,delete,fg,bg等功能。并正确的处理了SIGINT,SIGCHLD,SIGTSTP信号。

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.