二进制信号量和互斥量之间是否存在差异,或它们基本相同?
glossary operating-system mutex semaphore binary-semaphore
假设我们有两个堆栈而没有其他临时变量.
是否可以仅使用两个堆栈"构造"队列数据结构?
algorithm queue stack data-structures
当我们可用的唯一信息是指向要删除的节点的指针而不是指向前一节点的指针时,是否可以删除单个链表中的中间节点?删除后,前一节点应指向旁边的节点删除节点.
c linked-list data-structures
如何在应用程序中决定是使用线程还是创建单独的进程来实现并行性.
optimization operating-system
data-structures ×2
operating-system ×2
algorithm ×1
binary-semaphore ×1
c ×1
glossary ×1
linked-list ×1
mutex ×1
optimization ×1
queue ×1
semaphore ×1
stack ×1