当前位置:网站首页>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 ?
边栏推荐
- 太湖 “中国健康农产品·手机直播万里行”走进太湖
- The former king of fruit juice sold for 1.6 billion yuan
- Taiwan SSS Xinchuang sss1700 replaces cmedia cm6533 24bit 96KHz USB audio codec chip
- 软件工程最佳实践——项目需求分析
- 4.3-inch touch screen 12 channel control port programmable network central control supports mutual backup of 5 central control hosts
- What is the difference between tolocal8bit and toutf8() in QT
- Abaqus 2022软件安装包和安装教程
- Unity 如何拖拉多个组件中的一个
- 盘点华为云GaussDB(for Redis)六大秒级能力
- Data intelligence - dtcc2022! China database technology conference is about to open
猜你喜欢

台湾SSS鑫创SSS1700替代Cmedia CM6533 24bit 96KHZ USB音频编解码芯片

What is the difference between tolocal8bit and toutf8() in QT

CADD课程学习(1)-- 药物设计基础知识

如何做好测试用例设计

This morning, investors began to travel collectively

qt中toLocal8Bit和toUtf8()有什么区别

Buttons to achieve various effects and functions. Reading this article is enough

太湖 “中国健康农产品·手机直播万里行”走进太湖
MySQL数据库误删回滚的解决

盘点华为云GaussDB(for Redis)六大秒级能力
随机推荐
The prospectus of pelt medical was "invalid" for the second time in the Hong Kong stock exchange, and the listing plan was substantially delayed
matlab 将三角剖分结果保存为STL文件
盘点华为云GaussDB(for Redis)六大秒级能力
Lombok
VR全景中特效是如何编辑的?细节功能如何展示?
2022年高考都结束了,还有人真觉得程序员下班后不需要学习吗?
Enterprise middle office planning and it architecture microservice transformation
【NLP】【TextCNN】 文本分类
将秒数转换为**小时**分钟
【多线程】使用线程池、实现一个简单线程池
MySQL数据库查询优化
Solution to rollback of MySQL database by mistake deletion
太湖 “中国健康农产品·手机直播万里行”走进太湖
今早,投资人开始集体出差
Primary school, session 3 - afternoon: Web_ sessionlfi
CADD course learning (2) -- target crystal structure information
Abaqus 2022软件安装包和安装教程
Ten percent of the time, the tar command can't parse the English bracket "()" when decompressing the file
广州炒股开户选择手机办理安全吗?
静态类使用@Resource注解注入