查看: 2697| 回复: 1
跳转到指定楼层
上一主题 下一主题
收起左侧

[找工就业] Embedding & OS 面试题系列: 1

全局:

2022(10-12月)-EE本科+1-3年 | 网上海投| 码农类General全职@

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x

之前有发过一个帖子讲 关于 OS,embedded 和 firmware 找工作和面试的帖子: https://www.1point3acres.com/bbs/thread-1025763-1-1.html
现在准备开始发 我遇到和准备过的一些相关的题 这里就假设大家有基础的知识
大约每周一两道 大家可以一起讨论 我也会后面发表我的觉得的答案 和一些要注意的细节
-baidu 1point3acres
1.

Given the following class with 2 methods

class MySystem {.1point3acres
   
    /**
     * Waits durationMillis milliseconds then runs the callback. ..
     *
     * Only one timer can be pending at one time. If called again before the
     * duration expires, the original timer is overwritten without running
     * callback.
    */
    static void setTimer(long durationMillis, Runnable callback);

    /** Returns the current time in milliseconds since system boot. */
    static long getCurrentTimeMillis();
   
}



Use these methods to implement the 3rd method to support multiple timers:. 1point3acres

/**
* Waits durationMillis milliseconds then runs the callback.
*
* Supports multiple concurrent timers. Calling addTimer will not break. ----
* any previously started timers.-baidu 1point3acres
*/
void addTimer(long durationMillis, Runnable callback);

. ----

Usage is as follows:
.
MySystem sys = new MySystem();
sys.addTimer(100, runnable1);
Thread.sleep(50);.1point3acres
sys.addTimer(100, runnable2);. 1point3acres

2.. Waral dи,
. 1point 3acres
you have a very large binary file.
For each row you need to reverse the bits inside.
参考 https://leetcode.com/problems/reverse-bits/description/

评分

参与人数 3大米 +3 收起 理由
高启恒 + 1 赞一个
ChoiXuer + 1 欢迎分享你知道的情况,会给更多积分奖励!
nicksjy + 1 赞一个

查看全部评分


上一篇:微软(MS) teammatch, 求捞
下一篇:关于Mobile开发技术栈的担忧
🔗
CatamaranMan 2024-9-6 04:46:09 | 只看该作者
全局:
楼主还在吗?中厂os 准备跳槽,想系统地刷一下embedded,os的面经。私信你了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表