当前位置:网站首页>Summary of operating system interview questions (updated from time to time)
Summary of operating system interview questions (updated from time to time)
2022-06-30 20:07:00 【Solitary crane】
1. Talk about threads and processes , The difference between them ?
process : A process is an independent unit of the system for resource allocation and scheduling , Is the unit of concurrent execution in a system .
Threads : A thread is an entity of a process , It's also CPU Basic unit of dispatch and dispatch , It's a smaller, independent, basic unit than a process , It is sometimes called lightweight process or lightweight process .
difference :
(1) A process is the smallest unit of resource allocation , And the thread is CPU Minimum unit of scheduling ;
(2) Create process or undo process , The system has to allocate or recycle resources , The operating system overhead is much greater than the overhead when creating or undoing threads ;
(3) The address spaces of different processes are independent of each other , Threads in the same process share the same address space . The thread of one process is invisible within another process ;
(4) Processes don't interact with each other , A thread that hangs may cause the entire process to hang up ;
2. The mechanism of thread synchronization ?
Thread synchronization mechanism _ Game cat blog -CSDN Blog _ Synchronization of threads
3. The difference between synchronous and asynchronous ?
Sync : When a synchronous call is made , The caller has to wait for the result to be returned . Upon receipt of the notice , Then we can carry out the follow-up execution .( Execute in order )
asynchronous : When an asynchronous procedure call is issued , The caller cannot get the return result immediately . The part that actually handles this call is done , Passing state 、 Notifications and callbacks to notify callers .( Each executive )
4. The difference between blocking and non blocking ?
The difference between blocking and non blocking - Mai Fei - Blog Garden (cnblogs.com)
5. Four necessary conditions for deadlock in operating system ?
边栏推荐
- 笔记软件的历史、选择策略以及深度评测
- discuz 论坛提速之删除data/log下的xxx.php文件
- arthas调试 确定问题工具包
- A necessary tool for testing -- postman practical tutorial
- 【ICLR 2021】半监督目标检测:Unbiased Teacher For Semi-Supervised Object Detection
- 条件编译
- 小学期,第三场-下午:WEB_xxe
- Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
- Convert seconds to * * hours * * minutes
- 标配10个安全气囊,奇瑞艾瑞泽8安全防护无死角
猜你喜欢

《微信小程序-基础篇》带你了解小程序中的生命周期(二)

实现各种效果和功能的按钮,读这篇文章就够了

【论文阅读】Trajectory-guided Control Prediction for End-to-end Autonomous Driving: A Simple yet Strong Baseline

【450. 删除二叉搜索树中的节点】

Growth summer challenge is coming, exclusive community welfare is coming ~ get CSDN customized T-shirt for free

KubeVela 1.4:让应用交付更安全、上手更简单、过程更透明

RP prototype resource sharing - shopping app

Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)

派尔特医疗在港交所招股书二次“失效”,上市计划实质性延迟

2022年高考都结束了,还有人真觉得程序员下班后不需要学习吗?
随机推荐
暑期实训21组第一周个人工作总结
DNS服务器搭建、转发、主从配置
VR云展厅如何给线下实体带来活力?有哪些功能?
微信小程序开发实战 云音乐
The former king of fruit juice sold for 1.6 billion yuan
Wechat applets - basics takes you to understand the life cycle of applets (2)
arthas调试 确定问题工具包
GeoServer安装
dataloader 源码_DataLoader
腾讯会议应用市场正式上线,首批入驻超20款应用
This morning, investors began to travel collectively
VB的基本语法
【论文阅读】Trajectory-guided Control Prediction for End-to-end Autonomous Driving: A Simple yet Strong Baseline
一文读懂目标检测:R-CNN、Fast R-CNN、Faster R-CNN、YOLO、SSD「建议收藏」
Solution to rollback of MySQL database by mistake deletion
当我们在看待产业互联网的时候,总是会站在消费互联网的对立面来看待它
重复乃技艺之母
【多线程】使用线程池、实现一个简单线程池
#夏日挑战赛#【FFH】HarmonyOS手机遥控Dayu开发板相机
解决arm_release_ver of this libmali is ‘g2p0-01eac0‘,rk_so_ver is ‘4‘,libgl1-mesa-dev不会被安装,存在未满足的依赖关系