码迷,mamicode.com
首页 >  
搜索关键字:semi sync    ( 4832个结果
Java 对象的哈希值是每次 hashCode() 方法调用重计算么?
对于没有覆盖hashCode()方法的对象 如果没有覆盖 hashCode() 方法,那么哈希值为底层 JDK C++ 源码实现,实例每次调用hashcode()方法,只有第一次计算哈希值,之后哈希值会存储在对象头的 标记字(MarkWord) 中。 如果进入各种锁状态,那么会缓存在其他地方,一般是 ...
分类:编程语言   时间:2021-02-17 15:05:35    阅读次数:0
最小生成树 : Kruskal
https://www.acwing.com/problem/content/1143/ \(裸题\) #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); c ...
分类:其他好文   时间:2021-02-17 14:58:39    阅读次数:0
最小生成树 : 最大边
https://www.acwing.com/problem/content/1144/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:其他好文   时间:2021-02-17 14:57:50    阅读次数:0
多线程与高并发(四)--ReentrantLock及AQS源码
ReentrantLock源码 父子类关系:NonfairSync->Sync->AQS AQS源码 核心是volatile int state以及等待队列。 state的具体含义交给子类来定义。 ReentrantLock中state代表加解锁。 CountDownLatch中state代表需要c ...
分类:编程语言   时间:2021-02-17 14:21:25    阅读次数:0
动态组件与父子传值的灵活应用 ref控制子组件 props,emit传值
以父组件内的el-dialog和子组件内的el-form为例,进行父子组件方法调用与动态组件的灵活应用做讲解: 父组件: <el-dialog title="提示" :visible.sync="dialogVisible" width="30%" > <components :is="childr ...
分类:其他好文   时间:2021-02-16 12:21:06    阅读次数:0
[CF689D] Friends and Subsequences - 二分,ST表
给定两个长度均为 n 的数列,问有多少组 (l,r) 使得 max(al,...,ar)=min(bl,...,br) ...
分类:其他好文   时间:2021-02-16 12:01:53    阅读次数:0
Codeforces Round #697 (Div. 3) A-G
A. Required Remainder 题意: $t$组样例,判定一个正整数$n$是否存在一个大于$1$的奇数因子,\((1≤t≤10^4), (2≤n≤10^{14})\) 思路: 打表,发现只有满足$2^$的数字不存在奇数因子。 Code: int main(){ ios::sync_wit ...
分类:其他好文   时间:2021-02-15 12:39:39    阅读次数:0
git工具 -- repo
资料1: https://wladimir-tm4pda.github.io/source/git-repo.html sync命令: repo sync [project-list ] Downloads new changes and updates the working files in y ...
分类:其他好文   时间:2021-02-15 12:26:44    阅读次数:0
Educational Codeforces Round 102 (Rated for Div. 2)E题(分层图、最短路)
https://codeforces.com/contest/1473/problem/E vector存图: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0),cin.tie(0 ...
分类:其他好文   时间:2021-02-15 12:17:20    阅读次数:0
bzoj 3116 登顶计划题解
/* { ###################### # Author # # Gary # # 2021 # ###################### */ #include<bits/stdc++.h> #define rb(a,b,c) for(int a=b;a<=c;++a) #de ...
分类:其他好文   时间:2021-02-15 12:03:57    阅读次数:0
4832条   上一页 1 ... 9 10 11 12 13 ... 484 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!