上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 400 下一页
摘要: 在讨论阻塞与加锁之前,需要先理解一些核心概念:并发性、事务、隔离级别、阻塞锁及死锁。 并发性是指多个进程在相同时间访问或者更改共享数据的能力。一般情况而言,一个系统在互不干扰的情况下可以激活的并发用户的进程数越多,该系统的并发性就越强。就像通常所说的系统性能表现,系统同时处理的并发用户数越多,说明系 阅读全文
posted @ 2022-07-08 14:37 ChuckLu 阅读(190) 评论(0) 推荐(0)
摘要: Questions About T-SQL Transaction Isolation Levels You Were Too Shy to Ask Every time you access a relational database to make a query, you have an im 阅读全文
posted @ 2022-07-08 14:31 ChuckLu 阅读(50) 评论(0) 推荐(0)
摘要: SQL Server table hints – WITH (NOLOCK) best practices SQL Server table hints are a special type of explicit command that is used to override the defau 阅读全文
posted @ 2022-07-08 14:30 ChuckLu 阅读(80) 评论(0) 推荐(0)
摘要: await keyword blocks main thread 问题 So I have the following code private async void button1_Click(object sender, EventArgs e) { await DoSomethingAsync 阅读全文
posted @ 2022-07-05 16:21 ChuckLu 阅读(43) 评论(0) 推荐(0)
摘要: When correctly use Task.Run and when just async-await 回答 Note the guidelines for performing work on a UI thread, collected on my blog: Don't block the 阅读全文
posted @ 2022-07-05 14:45 ChuckLu 阅读(46) 评论(0) 推荐(0)
摘要: What is the difference between await Task<T> and Task<T>.Result? 问题 public async Task<string> GetName(int id) { Task<string> nameTask = Task.Factory.S 阅读全文
posted @ 2022-07-05 14:16 ChuckLu 阅读(39) 评论(0) 推荐(0)
摘要: What is the use for Task.FromResult<TResult> in C# 问题 In C# and TPL (Task Parallel Library), the Task class represents an ongoing work that produces a 阅读全文
posted @ 2022-07-05 13:54 ChuckLu 阅读(200) 评论(0) 推荐(0)
摘要: How do you create an asynchronous method in C#? 问题 Every blog post I've read tells you how to consume an asynchronous method in C#, but for some odd r 阅读全文
posted @ 2022-07-05 13:48 ChuckLu 阅读(40) 评论(0) 推荐(0)
摘要: Should I worry about "This async method lacks 'await' operators and will run synchronously" warning 问题 I have a interface which exposes some async met 阅读全文
posted @ 2022-07-05 11:16 ChuckLu 阅读(236) 评论(0) 推荐(0)
摘要: C# string reference type? 回答1 The reference to the string is passed by value. There's a big difference between passing a reference by value and passin 阅读全文
posted @ 2022-07-04 19:11 ChuckLu 阅读(76) 评论(0) 推荐(0)
上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 400 下一页