![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
高并发
紫菜(Nori)
Happy with code!
展开
-
原子操作、Interlocked
using System.Diagnostics.CodeAnalysis;using System.Runtime.CompilerServices;using System.Runtime.InteropServices;using Internal.Runtime.CompilerServices;namespace System.Threading{ public static partial class Interlocked { #region In.原创 2022-01-05 17:38:33 · 167 阅读 · 0 评论 -
DefaultObjectPool
预备知识: /// <summary> /// 实现运行性的交换操作 /// </summary> /// <param name="location1">变量的位置信息</param> /// <param name="value">变量的需要被赋值的信息</param> /// <param name="comparand"&g原创 2022-01-05 16:25:19 · 341 阅读 · 0 评论 -
CopyOnWriteArrayList
import sun.misc.SharedSecrets;import java.util.*;import java.util.concurrent.locks.ReentrantLock;import java.util.function.Consumer;import java.util.function.Predicate;import java.util.function.UnaryOperator;/** * A thread-safe variant of {@link .原创 2022-01-03 17:30:12 · 393 阅读 · 0 评论 -
ConcurrentBag
// Licensed to the .NET Foundation under one or more agreements.// The .NET Foundation licenses this file to you under the MIT license.// See the LICENSE file in the project root for more information.using System.Collections.Generic;using System.Diag.原创 2021-11-08 16:31:42 · 493 阅读 · 0 评论