由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请教一个C++的考题
相关主题
a small question about c++ memory allocation老魏,你的message queue的概念是十年前j2ee的概念
关于C/C++里的Static variable的memory allocation/initializa拿Cassandra当MQ用,证明你连Cassandra也不懂
What're the three types of memory allocated for C++ variables?lock-free data structures
effective C++里的memory pool 一问:关于内存泄漏
why do we still use dynamic allocation?static variable存在heap还是stack?
请教一个系统设计问题C++一个string的小问题
问一下STL里的queue, and stack 遍历的问题 (转载)another c++ interview question
拿C*当message queue用,不知道哪里面试能通过C++ Interview Question
相关话题的讨论汇总
话题: memory话题: size话题: data话题: allocation话题: variable
进入Programming版参与讨论
1 (共1页)
H****r
发帖数: 2801
1
The problem:
Create a solution that can manage a variable number of FIFO byte queues,
each with a variable length that is located in a small, fixed amount of
memory.
You cannot use dynamic memory allocation (new, malloc). All memory
allocation must be static. The maximum size allowed for storage of the
queued data is MAX_DATA_SIZE. You may statically allocate as much additional
memory as you choose, but remember that efficiency is important.
On average, while the system is running, there will be
1 (共1页)
进入Programming版参与讨论
相关主题
C++ Interview Questionwhy do we still use dynamic allocation?
内存分配问题请教一个系统设计问题
请教关于allocator member function 的问题问一下STL里的queue, and stack 遍历的问题 (转载)
在子函数内开内存,返回主函数指针然后释放空间是不是很糟糕的(转载)拿C*当message queue用,不知道哪里面试能通过
a small question about c++ memory allocation老魏,你的message queue的概念是十年前j2ee的概念
关于C/C++里的Static variable的memory allocation/initializa拿Cassandra当MQ用,证明你连Cassandra也不懂
What're the three types of memory allocated for C++ variables?lock-free data structures
effective C++里的memory pool 一问:关于内存泄漏
相关话题的讨论汇总
话题: memory话题: size话题: data话题: allocation话题: variable