04 2017 档案

Thread in depth 3:Synchronization
摘要:Synchronization means multi threads access the same resource (data, variable ,etc) should not cause a corruption to it.If all methods of a class promi 阅读全文

posted @ 2017-04-28 09:39 wyman25 阅读(319) 评论(0) 推荐(0) 编辑

Thread in depth 2:Asynchronization and Task
摘要:When we want to do a work asynchronously, creating a new thread is a good way. .NET provides two others ways rather than create thread explicitly, tha 阅读全文

posted @ 2017-04-27 16:10 wyman25 阅读(175) 评论(0) 推荐(0) 编辑

SQL Server 死锁概念和分析
摘要:锁的概念 锁是什么 锁是数据库中在并发操作情形下保护资源的机制。通常(具体要看锁兼容性)只有锁的拥有者才能对被锁的资源进行操作,从而保证数据一致性。 锁的概念可分为几部分 1.锁的资源 2.锁的模式 3.锁在事务中的持续时间 不同的事务隔离级别下,锁有不同的持续时间。 (单一个SQL语句也是一个事物 阅读全文

posted @ 2017-04-19 11:20 wyman25 阅读(2576) 评论(1) 推荐(0) 编辑

SQL Server 索引基本概念与优化
摘要:数据页和区 页 SQL Server 中的数据以“页”(Page)的形式保存数据,页是SQL Server 的IO单位,读/写一次至少是一页。一页为8K(8192byte). 页由三部分组成,页头,数据和偏移量。页头大小是96byte,记录页号,所属对象和页类型(IAM,DataPage,Index 阅读全文

posted @ 2017-04-18 17:46 wyman25 阅读(558) 评论(0) 推荐(0) 编辑

将Heap RID转换成RID格式
摘要:使用DBCC PAGE命令查看索引叶子层中的索引键(最后一个参数为3才会显示索引键对应的HEAP RID)时,可以使用下面的SQL将HEAP RID转换成 FileId:PageId:SlotNo的格式。这样可以根据索引键查找到RID所在页。 DECLARE @HeapRid BINARY(8) S 阅读全文

posted @ 2017-04-18 16:59 wyman25 阅读(345) 评论(0) 推荐(0) 编辑

有关DeadLock的文章列表
摘要:SET STATISTICS PROFILE ON 显示query的执行过程 Troubleshooting Deadlocks Understanding Locking in SQL Server 对锁的初步认识 深入的探讨锁机制 3种跟踪死锁的方法总结 Deadlock Troubleshoo 阅读全文

posted @ 2017-04-18 16:58 wyman25 阅读(389) 评论(0) 推荐(0) 编辑

c# AOP编程:Context与方法拦截
摘要:之前做AgentBooking时候,遇到两个问题比较棘手,一个是异常的传递与捕获:如何可以合理地在层层代码调用中统一传递并统一捕获异常。因为如果有一个做法,可以地方统一处理异常,可以使代码减少很多try cath逻辑,也不同时刻关注该怎么抛异常,这样代码写起来就比较happy。 第二个是Log的统一 阅读全文

posted @ 2017-04-18 16:56 wyman25 阅读(3445) 评论(0) 推荐(0) 编辑

wsdl 结构解析
摘要:webservice的跨平台特性要求它必须有某种手段来对服务进行自我描述,使不同的语言能正确理解如何调用该服务。webservice通过WSDL(Web Services Description Language)来实现这个目的。 webservice代码: 该服务的wsdl: wsdl主要通过 t 阅读全文

posted @ 2017-04-18 16:37 wyman25 阅读(566) 评论(0) 推荐(0) 编辑

what is HTTP OPTIONS verb
摘要:The options verb is sent by browser to see if server accept cross origin request or not, this process is called "prefight".If the response contain the 阅读全文

posted @ 2017-04-18 14:23 wyman25 阅读(282) 评论(0) 推荐(0) 编辑

Thread in depth 1: The basic
摘要:Every single thread has the follow elements: Thread in depth 1: The basic Thread in depth 2:Asynchronization and Task Thread in depth 3:Synchronizatio 阅读全文

posted @ 2017-04-18 00:28 wyman25 阅读(266) 评论(0) 推荐(0) 编辑

Easy mistakes in c#
摘要:ACCESS MODIFIERS c# has some access modifiers as below: public:class or member can be accessed by no restrictions private:members can only be accessed 阅读全文

posted @ 2017-04-15 11:53 wyman25 阅读(256) 评论(0) 推荐(0) 编辑

基于JWT的web api身份验证及跨域调用实践
摘要:随着多终端的出现,越来越多的站点通过web api restful的形式对外提供服务,很多网站也采用了前后端分离模式进行开发,因而在身份验证的方式上可能与传统的基于cookie的Session Id的做法有所不同,除了面临跨域提交cookie的烦人问题外,更重要的是,有些终端可能根本不支持cooki 阅读全文

posted @ 2017-04-10 13:22 wyman25 阅读(29382) 评论(9) 推荐(8) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示