码迷,mamicode.com
首页 >  
搜索关键字:shm    ( 1263个结果
IPC通信_共享内存
共享内存允许两个或多个进程共享一个给定的存储区,就是多个进程将同一块物理内存映射到自己的虚拟地址上。因为不需要在客户进程和服务进程之间拷贝,所以是最快的一种IPC。 函数1 #include <sys/shm.h> int shmget(key_t key, size_t size, int fla ...
分类:其他好文   时间:2020-02-04 23:33:45    阅读次数:107
2020-01-21 【JAVA】集合(容器)与遍历
Collection接口 extends java.lang.lterable接口 List-->ArrayList ,LinkedList,Vector # 数组int array[] = new int[3]; for ( int i = 0; i < array.length; i++){ S ...
分类:编程语言   时间:2020-02-02 19:55:33    阅读次数:78
1329. Sort the Matrix Diagonally
Given a m * n matrix mat of integers, sort it diagonally in ascending order from the top-left to the bottom-right then return the sorted array. Exampl ...
分类:其他好文   时间:2020-01-29 10:17:46    阅读次数:61
HashMap、HashTable、LinkedHashMap、TreeMap使用和区别
1.HashMap继承AbstractMap 实现Map接口,Map在java.util包中是独立的接口,不是继承Collection接口,继承Collection接口的有: /** * @see Set * @see List * @see Map * @see SortedSet * @see ...
分类:其他好文   时间:2020-01-27 13:48:09    阅读次数:63
506-相对名次
506 相对名次 给出 N 名运动员的成绩,找出他们的相对名次并授予前三名对应的奖牌。前三名运动员将会被分别授予 “金牌”,“银牌” 和“ 铜牌”("Gold Medal", "Silver Medal", "Bronze Medal")。 (注:分数越高的选手,排名越靠前。) 示例 1: 提示: ...
分类:其他好文   时间:2020-01-23 16:46:05    阅读次数:89
Groovy语法糖以及DSL
前言 Why 初次接触到Groovy是在实习中接触到一个 纯Groovy写的项目,当时看了下这不就是没有分号的Java么,而且也是有年纪的语言了,并不想投入时间学习。后来工作中越来越多的看到Groovy的身影,Gradle,Spring Cloud Contract等等都支持Groovy作为DSL( ...
分类:其他好文   时间:2020-01-21 16:20:08    阅读次数:141
【SpringBoot】 http请求注解之@RestController
@RestController @RestController = @Controller + @ResponseBody组成,等号右边两位同志简单介绍两句,就明白我们@RestController的意义了: @Controller 将当前修饰的类注入SpringBoot IOC容器,使得从该类所在 ...
分类:编程语言   时间:2020-01-20 22:49:44    阅读次数:93
线程池工具类实现结束指定线程
1.工具类基类(配置类):ExecutorSchdule 1 public interface ExecutorSchdule { 2 3 //corePoolSize 表示允许线程池中允许同时运行的最大线程数。 4 int corePoolSize = 40; 5 6 //maximumPoolS ...
分类:编程语言   时间:2020-01-20 14:40:48    阅读次数:75
spring+策略模式
需求: 这里虚拟一个业务需求,让大家容易理解。假设有一个订单系统,里面的一个功能是根据订单的不同类型作出不同的处理。 1. 常规代码实现 1.1 实体类 import lombok.Data; import java.math.BigDecimal; @Data public class Order ...
分类:编程语言   时间:2020-01-18 23:58:07    阅读次数:169
1296. Divide Array in Sets of K Consecutive Numbers
Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into sets of k consecutive numbersReturn Tru ...
分类:其他好文   时间:2020-01-18 10:37:01    阅读次数:92
1263条   上一页 1 ... 18 19 20 21 22 ... 127 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!