首页
AI Coding
数据标注
NEW
沸点
课程
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
中洲旅人
掘友等级
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
0
文章 0
沸点 0
赞
0
返回
|
搜索文章
最新
热门
Java并发编程 volatile关键字
可见性:确保多个线程在读取变量时总能获取到变量的最新值。 线程会将主内存中的变量拷贝到自己的工作内容中,在对工作内存中的变量进行操作后,会将变量再写回主内存中。 各个工作内存对应于CPU各个核心的缓存(通常每个核心的L1与L2缓存是各核心独立拥有,L3缓存则是所有核心共享的),…
从一个简单例子了解Java的Thread类
并行编程是Java的重要部分,本文通过RunOrder的例子结合源码介绍Thread类及部分锁相关的知识。 RunOrder模拟了多个客户下单,仓库管理系统更新存货量的过程。在代码实现上表现为多个线程各自循环多次对count变量进行自减操作。其中RunOrder未使用任何同步手…
Java native关键字
使用native修饰的Java方法由其他语言实现,如C/C++,被编译成DLL后通过Java调用。所以native方法仅使用Java声明,不使用Java实现。例如Java Thread类中的native方法: Java作为一种跨平台的语言(Write once, run any…
LeetCode 225. Implement Stack using Queues
Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of th…
LeetCode 7. Reverse Integer
7. Reverse Integer Given a 32-bit signed integer, reverse digits of an integer. Assume we are dealing with an environment which could only …
自动生成Python项目的requirements.txt的2种方法
自动生成Python项目的requirements.txt的2种方法直接使用pip输出当前环境下已安装的所有包到requirements中,pipfreeze>requirements.txt安装pi
LeetCode 4. Median of Two Sorted Arrays
4. Median of Two Sorted Arrays There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted …
LeetCode 2.Add Two Numbers
2. Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order …
个人成就
文章被点赞
2
文章被阅读
2,816
掘力值
112
关注了
5
关注者
1
收藏集
3
关注标签
9
加入于
2020-04-19