苍穹外卖后端开发(Day12)
苍穹外卖后端开发(Day12) 工作台 名词解释: 营业额:已完成订单的总金额 有效订单:已完成订单的数量 订单完成率:有效订单数 / 总订单数 * 100% 平均客...
苍穹外卖后端开发(Day12) 工作台 名词解释: 营业额:已完成订单的总金额 有效订单:已完成订单的数量 订单完成率:有效订单数 / 总订单数 * 100% 平均客...
苍穹外卖后端开发(Day11) Apache ECharts https://echarts.apache.org/zh/index.html 营业额统计 销量排名Top10 根据返回结果设计VO对象 SalesTop10ReportVO <select id="getSalesTop10" resultType="com.sky.dto.GoodsSalesDTO"> SELECT name, sum(od.number) number from order_detail od, orders o where od.order_id = o.id and o.status = 5 <if test="begin != null"> and...
苍穹外卖后端开发(Day10) Spring Task Spring Task 是 Spring 框架提供的任务调度工具,可以按照约定的时间自动执行某个代码逻辑。 cron 表达式 cron 表达式其实就是一个字符串...
苍穹外卖后端开发(Day7) 缓存菜品 用户端小程序展示的菜品数据都是通过查询数据库获得,如果用户端访问量比较大,数据库访问的压力随之增大。 实现...
苍穹外卖后端开发(Day6) HttpClient HttpClient是 Apache Jakarta Common 下的子项目,可以用来提供高效的、最新的、功能丰富的支持HTTP协议的客户端编程工具...
苍穹外卖后端开发(Day5) Redis Redis 是一个基于内存的key-value结构数据库的 基于内存存储,读写性能高 适合存储热点数据(热点商品,资讯,新闻...
苍穹外卖后端开发(Day3) 菜品管理 公共字段自动填充 对于创建时间、创建人id,修改时间,修改人id等字段 重复性代码进行统一编写 自定义注解Au...
苍穹外卖后端开发(Day2) 新增员工 管理端发出的请求, 统一使用/admin作为前缀 用户端发出的请求,统一使用/user作为前缀 代码开发 根据新...
Docker 快速构建、运行、管理应用的工具 Docker打印所有容器(包括关闭的) docker ps -a 正在运行的 docker ps 删除容器 docker rm <container_id> 启动已有的容器 docker start <容器ID或...
苍穹外卖后端开发(Day1) 软件开发流程 需求分析 : 需求规格说明说、产品原型 设计 : UI设计、 数据库设计、接口设计 编码 : 项目代码、单元测试 测试 :...
Prompt 要求:字数尽可能多,内容需要全面,可以不按照我的标题来写,可以适当添加一些内容,但是内容一定一定要多,要专业 请根据以上内容以及你的数据库内...
MIT6.S081(13)-Coordination (sleep&wakeup) plan Re-emphasize a few points about xv6 thread switching sequence coordination sleep & wakeup lost wakeup problem termination Why hold p->lock across swtch()? this is an important point and affects many situations in xv6 [diagram: P1, STACK1, swtch, STACK_SCHED] yield: acquire(&p->lock); p->state = RUNNABLE; swtch(); scheduler: swtch(); release(&p->lock); the main point of holding p->lock across swtch(): prevent another core’s scheduler from seeing p->state == RUNNABLE until after the...
周赛250922 小号第一次AK, 题比较简单。 3295. 举报垃圾信息 题目大意 给定两个字符串数组 message 和 bannedWords,你需要判断 message 是否属于“垃圾信...
MIT6.S081(11)- Thread switching Topic: more “under the hood” with xv6 Previously: system calls, interrupts, page tables, locks Today: process/thread switching Why support multiple tasks? Time-sharing: many users and/or many running programs. program structure: prime number sieve. parallel speedup on multi-core hardware. Threads are an abstraction to simplify programming when there are many tasks. thread = an independent serial execution – registers, pc, stack the threading system interleaves the execution of...
MIT6.S081(10)-Locking Why talk about locking? apps want to use multi-core processors for parallel speed-up so kernel must deal with parallel system calls and thus parallel access to kernel data (buffer cache, processes, &c) locks help with correct sharing of data locks can limit parallel speedup What goes wrong if we don’t have locks Case study: delete acquire/release in kalloc.c Boot kernel works! Run usertests all tests pass! except we lose...