avatar
怎样在内存中打洞# Programming - 葵花宝典
E*Y
1
A Cambridge based company in need of talented senior embedded software
engineer with firmware and software development experience. A fantastic
opportunity to work in one of the most promising companies in renewable
energy technology.Followings are a brief introduction of the position.
Senior Embedded Software Engineer
•Experience working on new projects implementing Ubuntu/ embedded
linux
•Knowledge of scripting and programming languages including C/C++ and
Perl/Python, ideally for embedded Linux on Xilinx and TI processors
•Experience in embedded multiprocessor systems, software/hardware test
and validation, bug lifecycle management, software development
methodologies (waterfall and agile)
•Start with 3-week vacation, 10% yearly bonus, excellent salary and
other compensation
Please send you resume to [email protected]/* */, or call me at 781-
862-6300 for more details of the role and see if it's something you may be
interested in.
Thanks,
Ming Gao
Research Assistant
ENGINUITY SEARCH INCORPORATED
76 Bedford Street, Suite30
Lexington, MA 02420
TEL: 781-862-6300
FAX: 781-862-2111
Email: [email protected]/* */
www.enginuitysearch.com
Established in 1984
avatar
n*f
2
有禅者问曰。一切诸法。悉皆如梦。娑婆固梦也。极乐亦梦也。既同是一梦。修之何益
。予曰。不然。七地以前。梦中修道。无明大梦。虽等觉犹眠。唯佛一人。始称大觉。
当梦眼未开之时。苦乐宛然。与其梦受娑婆之极苦。何若梦受极乐之妙乐。况娑婆之梦
。从梦入梦。梦之又梦。辗转沉迷者也。极乐之梦。从梦入觉。觉之又觉。渐至于大觉
者也。梦虽同。所以梦者未尝同也。可概论乎。
彻悟大师
avatar
s*k
3
开一个大数组,然后把数组中间一部分free掉。看到可以用mmap和munmap做,但是要求
是页面对齐。做更细粒度的内存打洞怎么做?比如int a[30], 把中间的a[9]-a[19]的
free 掉呢?假设是在linux下
avatar
j*y
4
emailed, thank you!
avatar
l*s
5
what is the purpose? to save memory? can't do realloc?
avatar
t*t
6
同不明白, mmap的结果本来就是allocate on use的, 干嘛要搞这么麻烦?

【在 l*********s 的大作中提到】
: what is the purpose? to save memory? can't do realloc?
avatar
d*n
7
用Btree吧,连续的就删掉。
其他做法,我估计要用memory pool library.

【在 s********k 的大作中提到】
: 开一个大数组,然后把数组中间一部分free掉。看到可以用mmap和munmap做,但是要求
: 是页面对齐。做更细粒度的内存打洞怎么做?比如int a[30], 把中间的a[9]-a[19]的
: free 掉呢?假设是在linux下

avatar
s*k
8
假设就是纯粹面试问题,这个有解吗?

【在 l*********s 的大作中提到】
: what is the purpose? to save memory? can't do realloc?
avatar
b*s
9
inplace new?
avatar
k*g
10

Custom allocator

【在 s********k 的大作中提到】
: 开一个大数组,然后把数组中间一部分free掉。看到可以用mmap和munmap做,但是要求
: 是页面对齐。做更细粒度的内存打洞怎么做?比如int a[30], 把中间的a[9]-a[19]的
: free 掉呢?假设是在linux下

avatar
h*6
11
直接用std::unordered_map都可以
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。