由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问个multi threading code 题,同时请问高手mutil threading 编程有什么好书,网站和教程推荐?
相关主题
two functons and two threads又tmd的面砸了一个,还是贴贴面经
failed bloomberg phone interviewthread safe hash table
这道设计题怎么做?发个n个月前的面经 - ms bing 悲剧
怎么练习multi-threading,平常工作都是用Java框架贡献T家新鲜面经,求个bless
请问如果用C++实现Thread Safe QueueThread 和 concurrency怎么准备?
昨天onsite被问到的 multithreading 题目请教如何保证函数时thread safe的?
上周的几道电面题跟Hiring Manager谈完了
multi-threading guru们qualcomm 新鲜电面面经
相关话题的讨论汇总
话题: threading话题: mutil话题: thread话题: 教程话题: 好书
进入JobHunting版参与讨论
1 (共1页)
b*m
发帖数: 34
1
问个multi threading code 题,同时请问高手mutil threading 编程有什么好书,网
站和教程推荐?
先问一下下面这个code 题:
写个queue, first in first out
用两个 thread
一个 thread pop head out
一个 thread poush back to tail
这个准确的应该如何写
如果有3 个以上的 thread 比如10 个thread 又应该如何写?
如何优化算法呢?
如果unlimited 个数的 thread 呢?
请问有没有上面这题相关的代码, 网站或者教程推荐呢?
mutil threading 编程讲的比较好有实际code 的又有什么好书,网站和教程推荐?
多谢大家帮忙。
m********l
发帖数: 4394
2
C#?
use Monitor,
Wait, Pulse
很简单的程序。 我不会写

【在 b*m 的大作中提到】
: 问个multi threading code 题,同时请问高手mutil threading 编程有什么好书,网
: 站和教程推荐?
: 先问一下下面这个code 题:
: 写个queue, first in first out
: 用两个 thread
: 一个 thread pop head out
: 一个 thread poush back to tail
: 这个准确的应该如何写
: 如果有3 个以上的 thread 比如10 个thread 又应该如何写?
: 如何优化算法呢?

a****n
发帖数: 1887
3
加个mutex就行了,要求lock free的话, 参看non-blocking queue
a**********2
发帖数: 340
4
semaphore,多写多读的话再加俩mutex
j**w
发帖数: 382
P********l
发帖数: 452
1 (共1页)
进入JobHunting版参与讨论
相关主题
qualcomm 新鲜电面面经请问如果用C++实现Thread Safe Queue
请问C++ threading w/ lock free algorithms昨天onsite被问到的 multithreading 题目
面试的时候让你写一个thread pool,能写正确的来举手上周的几道电面题
请教L家生成H2O水分子的题。multi-threading guru们
two functons and two threads又tmd的面砸了一个,还是贴贴面经
failed bloomberg phone interviewthread safe hash table
这道设计题怎么做?发个n个月前的面经 - ms bing 悲剧
怎么练习multi-threading,平常工作都是用Java框架贡献T家新鲜面经,求个bless
相关话题的讨论汇总
话题: threading话题: mutil话题: thread话题: 教程话题: 好书