上一页 1 2 3 4 5 6 7 ··· 30 下一页
摘要: 1. 原理 乐观并发的原理: update GoodsInfo set goodOwner=新值 where id=01 and goodOwner=旧值 剖析:当Update的时候,如果数据库中的goodOwner值已经被其他操作者更新为其他值了,那么where语句的值就会为false,因此这个U 阅读全文
posted @ 2023-06-06 20:02 .net&new 阅读(184) 评论(0) 推荐(0) 编辑
摘要: using System.Diagnostics; Stopwatch timer = new Stopwatch(); timer.Start(); for(....) timer.Stop(); MessageBox.Show(timer.Elapsed.Ticks.ToString(Cultu 阅读全文
posted @ 2023-05-28 10:06 .net&new 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 委托是什么 大部分的解释是 委托是一个对方法的引用,可以不用自己执行,而是转交给其他对象。就好比每天都有一个黄毛旅行者,给npc做委托任务一样,npc并不是自己去做任务。 于是我们可以有以下代码,delegate就是声明一个委托,它的作用是调用sum方法 // See https://aka.ms/ 阅读全文
posted @ 2023-05-26 12:21 .net&new 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 1 什么是反射 首先要复习一下C#的编译过程,可以解释为下图 其中dll/exe中,包括元数据(metadata)和IL(中间语言Intermediate Language) 另外还出现的其他名词:CLR(公共语言运行时,Common Language Runtime)和JIT(实时编译器 Just 阅读全文
posted @ 2023-05-26 12:07 .net&new 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 线程管理类:SocketServer public class SocketServer { /// <summary> /// 接入池 /// </summary> private List<Client> clients= new List<Client>(); /// <summary> // 阅读全文
posted @ 2023-05-26 10:52 .net&new 阅读(5) 评论(0) 推荐(0) 编辑
摘要: winfor的页面类 : using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using 阅读全文
posted @ 2023-05-26 10:41 .net&new 阅读(4) 评论(0) 推荐(0) 编辑
摘要: using System.Net.Sockets;public class Client { /// <summary> /// 序列号 /// </summary> public int Number { get; set; } /// <summary> /// 用户超密 /// </summa 阅读全文
posted @ 2023-05-26 10:35 .net&new 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 输入命令 docker pull rabbitmq:3.7.7-management 简单启动(默认密码账号guest/guest) docker run -d -p 5672:5672 -p 15672:15672 --name rabbitmq rabbitmq:management 复杂启动( 阅读全文
posted @ 2023-05-25 12:52 .net&new 阅读(13) 评论(0) 推荐(0) 编辑
摘要: root@ecs-kc1-small-1-linux:~# docker run -p 3306:3306 mysql:8-oracle2022-03-05 13:40:49+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 阅读全文
posted @ 2023-05-25 12:40 .net&new 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: 查看镜像:docker images 导出镜像:docker save 05db07cd74c0 >E:\mysql.tar 导入镜像: 在新电脑上执行命令: docker load -i C:\Docker\redis.tar C:\Docker\redis.tar 为压缩文件路径, 此时需要一定 阅读全文
posted @ 2023-05-25 12:24 .net&new 阅读(23) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 30 下一页