|
|
|
[原创]原创读写锁,求测试
你写了一个函数,里面要获取写锁。 然后你去调用你的同事写的一个函数,这个函数需要保证在读数据时,是没别人写数据的,所以默认加了读锁,且这个函数有两种调用方式: 1、最顶层直接调用,当然没问题。 2、被你加了写锁的那个函数调用。这时如果不支持已经在持有写锁的情况下再次去获取读锁,是要死锁的。难不成这个情况。。。你要求你的同事改函数原型,加个参数告诉内部逻辑是不是要获取读锁? |
|
|
|
[原创]原创读写锁,求测试
具体测试用例类似这样: 先申明一个全局变量: RW_LOCK_TYPE g_RwLock; 需要加读锁时,直接申明一个读锁临时变量:RLock ReadLock(g_RwLock); 在ReadLock这个变量的有效范围内,读锁有效,不需要专门解锁。 需要加写锁时,直接申明一个写锁临时变量:WLock WriteLock(g_RwLock); 在WriteLock这个变量的有效范围内,写锁有效,不需要专门解锁。 支持N次重入,支持占有写锁的线程继续去占有读锁(反过来不允许),写优先。 不支持占有写锁的线程将写锁转换为读锁(目前暂时没这个需要)。 |
|
杀毒公司员工还原真实的熊猫烧香毒王李俊
纯粹技术角度而言,这人确实不怎么样。。。不过被媒体捧的不知天高地厚了 |
|
[求助]如何编程获取到一个文件的扇区位置,并读写它?
FSCTL_GET_RETRIEVAL_POINTERS |
|
[求助]如何加载MachineType不正确的可执行文件
那是因为你的那些所谓方式,根本没有实现的可能。 实际上等价于,你要让windows给你把不是可执行文件的文件(对于ARM平台,x86的PE文件就等价于不可执行文件)加载起来,这个就和java虚拟机一样要求,简单的话,可以的话,人家java还不如就依照PE格式去存放他的字节码,然后像你说的一样,她只负责执行字节码就是了。。。。人家没这么搞,难道就是因为这个难度太小,不屑么。。。。 |
|
[求助]IRP_MJ_CLOSE的问题
close代表的是这个文件对象以及他的句柄都没了,cleanup代表所有句柄都没了,但不一定文件对象也没了 |
|
|
|
[求助]如何加载MachineType不正确的可执行文件
你以为java 虚拟机是那么好实现的么。。。。。简单就不需要人家那么大的团队来搞了 |
|
[求助]如何加载MachineType不正确的可执行文件
注啥注,都要jit了, 为什么不自己写个arm程序去读取x86的pe然后解释执行。至于你说的什么运行起来就用你的jit去解释,用的着Ps监控么,把x86PE的后缀改成你自己定的名字,然后这个类型文件的打开方式改成你自己的那个jit程序,不就够了,与.java的执行方式有啥区别。。。。 |
|
[分享]随便侃
我怎么突然发现你的头像是会动的呢。。。。 |
|
[分享]随便侃
你不知道世界上还有“天才”这类人么。。。。。。不过你是天才吗? |
|
[分享]随便侃
这事只能说是目前的一批占着位置的老人把整个环境搞成了这样,并且还试图以自己的见解把所谓新人也培育成这种标准件,只要有自己的坚持,有一天,你也会超过他那个位置 |
|
[翻译]调用内核中未公开的API(x64平台)
整个过程基本不存在任何硬编码,不比费那么大劲儿高效兼容性好吗 |
|
[翻译]调用内核中未公开的API(x64平台)
搞得这么麻烦,不就是调用ssdt函数么…… 实际上,zw系列函数,是从index为0的zw函数开始,挨个顺序排列的,而且每个zw函数的字节数完全一致。所以: 第一,根据任何两个已导出的zw函数的地址以及他们的index值,算出一个zw函数所占字节数。 第二,根据上面算出的单个zw函数的字节数以及任何一个已导出的zw函数的索引值,还有这个函数的地址,算出index为0的zw函数的地址。 第三,调用任何一个zw函数(不管导出没导出,只要知道index就是了)时,用index为0的函数的地址base,加上单个函数字节数乘以index,最后的和就是要被调用的函数的地址,形如:pZwFunc=ulIndex*SizePerFunc+pBase; |
|
[求助]关于NDIS中间层与socket通信的问题
所谓socket,并没有任何一个内 叫socket的,纯粹是应用层对协议栈的包装。 你所说的,实质就是内核网络通信,按你的要求,你就需要自己去实现tcpip协议栈一直到socket包装的所有内容。 所以。。。。要么回去多学几年基础再来考虑这个问题,要么另寻他途 |
|
[求助]现在的游戏保护有没有拦截了CreateRemoteThread?
防注入未必要在别人真的注入的时候拦截,整个过程中任何一处不是一样搞。 话说某山所谓的边界防御、入口防御,不就是这么个思想嘛……让你一开始就不具备那个能力……这点,个人觉得,实际是跟古代皇帝老儿学的,防止被戴绿帽子,并不靠捉奸现场,而是让那些有嫌疑的人,一开始就不具备这种能力,把他们太监了 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值