m******t 发帖数: 2416 | 1 interrupt() only interrupts threads that are wait()'ing or sleep()'ing.
There are timeout values you can set on a URLConnection. Also thread2 needs
to be coded to cooperate with an "interrupt" request from main. |
|
m******8 发帖数: 2153 | 2 Perhaps the most irony-tinged comment came from one Anthony Urciuoli, who
wrote on Twitter: “Thinking about filing a lawsuit with [sic] #CHCH for
making me question my sexuality.”
====================
A newscast on a local television station in Hamilton, Ontario was
interrupted yesterday by three minutes of hardcore gay pornography, which
has drawn equal amounts of humour and outrage across social networks.
The incident occurred around 9.30 in the morning, local time, on the local
CHCH televisio... 阅读全帖 |
|
p*******s 发帖数: 7 | 3 机器是X61s,core2duo,自己把vista干掉装的正版XP. 有时候空闲CPU占用率达到30%左
右,查了一下发现是"hardware interrupts"在占用(用proc explorer看的,task
manager会把它算在system idle进程里)。
google过,发现有种说法是SATA硬盘的驱动没有装好导致读写出错,使得硬盘工作在
PIO模式(正常的应该是DMA模式),所以出现这种情况。据说出6个还是3个错硬盘就会
自动从DMA转换到PIO. 可是我肯定驱动是装好了的(重装驱动也没用),硬盘用chkdsk
和lenovo的diagnoise软件测试过也没有任何问题,而且出问题的时候硬盘也还是工作
在DMA模式。
最奇怪的是如果把机器放在桌子上用,不移动的话,可以用很长时间(好几天)也不会
trigger这个问题。可是只要端着它走动一下的话(比如客厅到卧室),再使用就会很
快trigger这个问题。而且一旦Interrupts开始占用CPU,就不会停止。让机器Sleep一
下再打开可以使问题消失(只是有时过一小会又开始出问题,有时又可以正常很长时间
)。
还有 |
|
z***l 发帖数: 256 | 4 读《Linux Kernel Primer》,上面写exceptions typicall happen after an
intruction's exectuion, and interrupt can happen in between instructions。
这里我不太清楚after an intruction's exectuion 和between instructions的差别。
难道是指的exceptions 是一个在取指令周期,取数据周期和执行周期都完成之后发生
,而interrupt 可以在这些周期之间发生?
请教高手,谢谢! |
|
b*********n 发帖数: 1258 | 5 【 以下文字转载自 Java 讨论区 】
发信人: babyfacenan (黑土), 信区: Java
标 题: 急问:怎么kill一个thread, thread.interrupte()不好用呀?
发信站: BBS 未名空间站 (Sun Apr 27 15:47:01 2008)
我在MainThread里同时start了两个thread: thread1, thread2
MainThread里等了2sec之后,想要kill thread2
thread2是去obtain一个url 的content,
一般情况thread2在2-3secs之后就return url content,但有时会take up to 10 sec
想要实现在2sec之后,
如果thread2没结束就强行结束,并返回nothing,
如果thread2结束了就返回url content.
用了:thread2.interrupt() 来强行结束thread2;
但是好像没有用呀,thread2还是在运行,并没有end
而且在我连续调用MainThread时,下一次的MainThread返回的url |
|
z*****n 发帖数: 7639 | 6 如果那18个task都是靠一个timer的基准时钟来调度的,
应该不会有太大冲突,它们只算一个竞争者。
watchdog如果也是靠同一个timer的基准时钟来更新的,也可以不算。
最后系统在这两个external interrupt上有多精确,跟有多少
同级和更高级的hardware interrupt有关,也跟你的ISR的复杂度有关。
不过一般系统都是external优先级最高,so,improve的办法是
1)用高时钟频率的芯片,
2)尽量减少ISR的时间复杂度。 |
|
G******d 发帖数: 364 | 7 Tim Kaine keeps interrupting Pence while it is Pence's time to respond. If
Tim
cannot follow the rule of debate, how can he follow the rule of laws of
United States of America. Idiot liberal Time Kaine. Shame on Tim. |
|
p*******u 发帖数: 10 | 8 刚申请的citi的信用,$2000信用额度。前天刚拿到卡,但是今天登录citi的账户发现
这条消息“Contact Customer Service immediately to avoid transaction
interruptions. 1-800-950-5114”
然后我就给citi的客服打电话,他说我的信息太新了,要重新核实我的信息,需要我提
交带头像的ID(passport),ssn,rent lease。我当时申请的时候身份写的是us
resident,这下不是露馅了吗?
请问他们会重新严格的审核这些材料吗?非常担心影响信用记录,这个是不是涉及到欺
诈? |
|
|
wh 发帖数: 141625 | 10 【 以下文字转载自 Connecticut 讨论区 】
发信人: wh (wh), 信区: Connecticut
标 题: Life Interrupted
发信站: BBS 未名空间站 (Mon May 28 14:52:12 2012, 美东)
Marina Keegan上周刚参加了耶鲁大学的毕业典礼。她热爱写作、表演,在The New
Yorker找到一份editorial assistant的工作,即将搬去纽约。上周一耶鲁日报毕业专
刊上刊登了她的毕业感言:
But let us get one thing straight: the best years of our lives are not
behind us. They’re part of us and they are set for repetition as we grow up
and move to New York and away from New York and wish we did or didn’t live
in New York. I plan on having parties wh... 阅读全帖 |
|
o********l 发帖数: 12430 | 11 what do you mean? there's not really anything going on right now for you to
interrupt. |
|
s**d 发帖数: 787 | 12 keep posting cuz otherwise you might interrupt our watering. |
|
l**7 发帖数: 3940 | 13 【 以下文字转载自 Tennis 讨论区 】
发信人: ler7 (Gala), 信区: Tennis
标 题: Screaming Sex Noise interrupted Sarasota Open ...
发信站: BBS 未名空间站 (Wed Apr 19 11:16:02 2017, 美东)
https://youtu.be/jVfZJFNYF0s |
|
wh 发帖数: 141625 | 14 【 以下文字转载自 Connecticut 讨论区 】
发信人: wh (wh), 信区: Connecticut
标 题: Life Interrupted
发信站: BBS 未名空间站 (Mon May 28 14:52:12 2012, 美东)
Marina Keegan上周刚参加了耶鲁大学的毕业典礼。她热爱写作、表演,在The New
Yorker找到一份editorial assistant的工作,即将搬去纽约。上周一耶鲁日报毕业专
刊上刊登了她的毕业感言:
But let us get one thing straight: the best years of our lives are not
behind us. They’re part of us and they are set for repetition as we grow up
and move to New York and away from New York and wish we did or didn’t live
in New York. I plan on having parties wh... 阅读全帖 |
|
wh 发帖数: 141625 | 15 【 以下文字转载自 Connecticut 讨论区 】
发信人: wh (wh), 信区: Connecticut
标 题: Life Interrupted
发信站: BBS 未名空间站 (Mon May 28 14:52:12 2012, 美东)
Marina Keegan上周刚参加了耶鲁大学的毕业典礼。她热爱写作、表演,在The New
Yorker找到一份editorial assistant的工作,即将搬去纽约。上周一耶鲁日报毕业专
刊上刊登了她的毕业感言:
But let us get one thing straight: the best years of our lives are not
behind us. They’re part of us and they are set for repetition as we grow up
and move to New York and away from New York and wish we did or didn’t live
in New York. I plan on having parties wh... 阅读全帖 |
|
b*********n 发帖数: 1258 | 16 我在MainThread里同时start了两个thread: thread1, thread2
MainThread里等了2sec之后,想要kill thread2
thread2是去obtain一个url 的content,
一般情况thread2在2-3secs之后就return url content,但有时会take up to 10 sec
想要实现在2sec之后,
如果thread2没结束就强行结束,并返回nothing,
如果thread2结束了就返回url content.
用了:thread2.interrupt() 来强行结束thread2;
但是好像没有用呀,thread2还是在运行,并没有end
而且在我连续调用MainThread时,下一次的MainThread返回的url content
是上一次MainThread启动的thread2返回的url content
用的是jre1.6
哪位高手给指点指点吧,谢谢
MainThread:
Thread thread1 = new Thread(new multiThread11());
Thread threa |
|
h*********o 发帖数: 62 | 17 since you are using jre 1.6, using the new thread framework introduced from
1.5 would be a better idea.
You might want to have a look at futuretask, callable, executor framework,
etc. the new framework is much better than the old one in aspects of value
return, cancellation, interruption, and exception handling, etc.
As I remember, you should be able to find the code sample to your question
in the book of Java Concurrency... (sorry, forget the full name). The book
was written by the lead desig |
|
Z****e 发帖数: 2999 | 18 Thread#interrupt is discouraged, and the right way is to ask thread2 exit
willfully via some flag. The core issue here is that the input stream on URL
object might block, so what you need is a timeout on the read.
see URLConnection class, which has timeout for both connect and read, and
you can obtain an instace from URL#openConnection. |
|
m******t 发帖数: 2416 | 19 If thread2 is stuck in native socket code -- e.g.
trying to connect to the url, there is no (java)
way to interrupt it. The only possibility AFAICS
would be to start it as a daemon thread.
I hope everybody realizes that this was a thread
from over a year ago, by the way. 8-) |
|
j**********p 发帖数: 22 | 20 Probably it should have said this, exceptions are typically generated by
instructions, while interrupts are irrelevant to instructions, which could
be after or in between instructions. |
|
i*****r 发帖数: 265 | 21 Interrupts are called asynchronous exception, which are generated by
hardware devices. Exception is generated by CPU (instructions) after the
termination of instruction (typically). |
|
r****s 发帖数: 179 | 22 I trying to balance network interrupts on a multiple core with hyper-
threading enabled Redhat X86_64 server.
Does anyone have experience with it? |
|
w*******y 发帖数: 60932 | 23 CyberPower
1500VA/900Watts
Un-interruptible Power Supply
8 Outlet
LCD Diagnostic Display
ADDED VALUE: TRVL918 Travel Surge
The Intelligent LCD Series CP1500AVRLCD UPS, designed for mid to high-end
computer systems, features dynamic line conditioning and a LCD diagnostic
display.
Real-time system vitals can be viewed from this Crystal-Blue (see below)
display. The unit can be conveniently mounted in a workstation cabinet, or
directly on the desktop. The CP1500AVRLCD guards against surges/spikes, ... 阅读全帖 |
|
W*******n 发帖数: 4140 | 24 NYS Workers' Comp: How Alpha 3T MRI Fouls Even on The DVDs?
By Limin Wang
March 03, 2020
Introduction:
This realistic story mainly tells how a medical diagnostic imaging MRI
facility, Alpha 3T MRI (145 East 32 Street, Ground Floor, New York, NY 10016
. Phone: (212) 868-9210), gave me, an apparent workers’ compensation case (
NYS WCB# G2029240) patient but actually a victim of attempted murders, a DVD
completely blank in its content but with my information printed on the disk
skin, soon after the... 阅读全帖 |
|
l******n 发帖数: 9344 | 25 在expedia.com买机票的时候,可以选择International flight insurance,价格大概
70$左右。
对于不想买regular travel insurance的同学,可以考虑一下。
SUMMARY OF COVERAGES
PART A. TRAVEL ARRANGEMENT PROTECTION
Trip Cancellation and Trip Interruption Benefits
Pre-Departure Trip Cancellation
We will pay a Pre-Departure Trip Cancellation Benefit, up to the amount in
the Schedule for non-refundable cancellation charges imposed by Expedia, Inc
., if you are prevented from taking your Covered Trip due to your, an
Immediate Family Member’s, Trav... 阅读全帖 |
|
l****z 发帖数: 29846 | 26 by Rick aka Mr. Brutally Honest
It should come as no surprise to those who think, who don't emote, who have
a firm grasp of reality and aren't high on narcotics that she was biased.
Politico:
Amid persistent complaints and interruptions from both candidates,
President Obama ultimately got Candy-crowleymore than three extra minutes of
speaking time than Mitt Romney during Tuesday's debate.
According to CNN's timekeeping, Obama got 44:04 minutes of speaking time
, while Romney got 40:50.
I... 阅读全帖 |
|
w*s 发帖数: 7227 | 27 guys, when there're too many interrupts happening,
in very old days you disable interrupts (mask interrupt pins in these HW
registers ?)
while processing this current interrupt.
is spin_lock_irqsave() doing the same thing ?
"The use of spin_lock_irqsave() will disable interrupts locally and provide
the spinlock on SMP."
what does "disable interrupts locally" mean ? |
|
c********l 发帖数: 77 | 28 有一个C写的MPI程序,目前用gdb在16个节点上调试:
很快锁定下面这句有问题,每次运行到这里就出错:
MPI_Scatter(SendValueReal, (X_Size*Y_Size)/(XN*YN), MPI_FLOAT,
Local_Buf, (X_Size*Y_Size)/(XN*YN), MPI_FLOAT, 0, MPI_COMM_WORLD);
错误信息如下:
p1_29194: p4_error: interrupt SIGSEGV: 11
p5_11579: p4_error: interrupt SIGSEGV: 11
p7_513: p4_error: interrupt SIGSEGV: 11
p11_31130: p4_error: interrupt SIGSEGV: 11
Program received signal SIGUSR1, User defined signal 1.
p9_31572: p4_error: interrupt SIGSEGV: 11
p13_29641: p4_error: interrupt SIGSEGV |
|
a***k 发帖数: 1038 | 29 【 以下文字转载自 paladin 讨论区 】
发信人: atack (小军号), 信区: paladin
标 题: 红死病 by 杰克.伦敦
发信站: BBS 未名空间站 (Sat Oct 11 07:40:15 2014, 美东)
I
The way led along upon what had once been the embankment of a railroad. But
no train had run upon it for many years. The forest on either side swelled
up the slopes of the embankment and crested across it in a green wave of
trees and bushes. The trail was as narrow as a man's body, and was no more
than a wild-animal runway.
Occasionally, a piece of rusty iron, showing through ... 阅读全帖 |
|
c****p 发帖数: 6474 | 30 如果他们还允许appeal的话,可以再试试,一来多次机会,二来多出些时间准备backup
plan。
后面是和OPT reporting有关的原文。
只有三种状况需要report
1. Change of name
2. Change of address
3. interruption of employment.
你老公的情况是employment并没有interrupt,并没有被明确地列为需要报告的项目。
即使从paid到unpaid被“默认”为interruption的话,也是因为法条叙述不明,并不是
当事人有意违反。
(i) General . An F-1 student who is authorized by USCIS to engage in
optional practical training (OPT) employment is required to report any
change of name or address, or interruption of such employment to the DSO for
the duration of ... 阅读全帖 |
|
l**h 发帖数: 893 | 31 实现两个函数: H() and O(), 这两个函数会被多线程调用。当一个线程调用H或O时
,如果当前已经有至少两个线程call H和一个线程call O。那么让两个call H和一个
call O的线程返回(产生一个水分子),其他的都block。
写了个Java版本的,大家指教:
import java.util.*;
import java.util.concurrent.*;
public class ThreadH2OSema {
private final Semaphore hCalled = new Semaphore(0);
private final Semaphore hUsed = new Semaphore(0);
private final Semaphore oCalled = new Semaphore(0);
private final Semaphore oUsed = new Semaphore(0);
public void H() {
try {
h... 阅读全帖 |
|
l**h 发帖数: 893 | 32 实现两个函数: H() and O(), 这两个函数会被多线程调用。当一个线程调用H或O时
,如果当前已经有至少两个线程call H和一个线程call O。那么让两个call H和一个
call O的线程返回(产生一个水分子),其他的都block。
写了个Java版本的,大家指教:
import java.util.*;
import java.util.concurrent.*;
public class ThreadH2OSema {
private final Semaphore hCalled = new Semaphore(0);
private final Semaphore hUsed = new Semaphore(0);
private final Semaphore oCalled = new Semaphore(0);
private final Semaphore oUsed = new Semaphore(0);
public void H() {
try {
h... 阅读全帖 |
|
z*******i 发帖数: 2904 | 33 2015-09-10
The STEM OPT Program: Next Steps and Planning for F-1 Students and Employers
United States
Following the recent court ruling in Washington Alliance of Technology
Workers v. DHS (WashTech), the Department of Homeland Security is expected
to publish the regulation that established the STEM optional practical
training (OPT) program for notice and comment to ensure that the program
continues uninterrupted. Meanwhile, the STEM OPT regulation remains in
place, allowing F-1 STEM students t... 阅读全帖 |
|
N********X 发帖数: 69 | 34 我工作5-6年了,这次面的是system engineer (好像是这个名字), 让朋友内推的,直
接奔着这个职位去的,是比较底层,平时工作也跟linux kernel打点交道,正好这个组
需要有人帮忙写个driver什么的,就面我这个问题了。版上如果是general hire的话,
应该不用担心这样的问题。
udp driver的话,关键点是两点,一是register interrupt line associated with an
interrupt handler,因为MAC在收到packet的时候会产生一个interrupt。packet的处
理在interrupt handler里面。还有一点是linked list,packet的存储一般是用linked
list。
还要注意就是linux kernel space和user space的概念以及locking mechanism。
楼上提到DMA也是对的,network driver都是用DMA的,不然处理起来会太慢。这轮比较
恶心的是,开始说的implement i2c的数据读取,这种主从方式的communicatio... 阅读全帖 |
|
k****a 发帖数: 4944 | 35
每张信用卡基本都有:
TRIP CANCELLATION / INTERRUPTION: In the event of the Insured
Person’s Trip Cancellation or Trip Interruption, we will pay up to
the Trip Cancellation/Trip Interruption Benefit Amount of $1,500.
Our payment will not exceed either: 1) the actual Non−Refundable
amount paid by the Insured Person for a Common Carrier passenger
fare(s); or 2) $1,500. The Insured Person will relinquish to us any
unused vouchers, tickets, coupons or travel privileges for which we
have reimbursed the I... 阅读全帖 |
|
a***k 发帖数: 1038 | 36 I
The way led along upon what had once been the embankment of a railroad. But
no train had run upon it for many years. The forest on either side swelled
up the slopes of the embankment and crested across it in a green wave of
trees and bushes. The trail was as narrow as a man's body, and was no more
than a wild-animal runway.
Occasionally, a piece of rusty iron, showing through the forest-mold,
advertised that the rail and the ties still remained. In one place, a ten-
inch tree, bursting through... 阅读全帖 |
|
x****o 发帖数: 21566 | 37 1) many device drivers are using loops
2) when an interrupt comes in, the processor will vector that interrupt to
find a piece of code which will execute in interrupt context to handle the
interrupt. If this is the timer, usually it executes the scheduling task at
the highest priority in your system and choose the next task ( depends on
the scheduling policy). Sometimes it can also deal some other events/pending
signals, depends on the system design. |
|
x**l 发帖数: 64 | 38 即使enable interrupt shield也不能解决问题. interrupt sheild 可以通过
/proc/irq/default_smp_affinity修改.
而且就算是interrupt造成的影响, 但不能解释为什么会对working()有影响.
在1 sec 延迟情况下, interrupt99%会落在运行gap()时,而不是运行working()时.
就算interrupt落在working()运行时,也不能解释为什么8个working() call都会受完全
一致的影响. |
|
x**l 发帖数: 64 | 39
FT,还是错的。请接着改。
---我改为两个lfence夹一个rdtsc,如果你还觉得不正确,麻烦你明示你认为正确的办法.
+++++++++++++
请问你是在 Intel 工作吗?你能用 Intel 内部结构去
推断 CPU 的行为而忽视 Intel 手册。
如果你对 1000 cycle 的误差感兴趣,
为什么你不按照 Intel 建议的方式使用 rdtsc 和 rdtscp?
----我始终不认为这1000个cycle是由于rdtscp/rdtsc造成的,道理很简单,最终计算的
是两次clock值的difference,而不是绝对值,在一个working()和gap()交替执行的循环
中,不管out-of-order execution怎么跳,rdtsc测测了误差都不会造成一种是working()
的时间是
1100左右, 1100左右, 1100左右,1100左右,1100左右,...
另一种是
2500左右, 2500左右, 2500左右, 2500左右, 2500左右, ....
++++++++++++++++++++++++++++++++++++
你前面根本没有给... 阅读全帖 |
|
s****r 发帖数: 48 | 40 I think we should choose B.
From uptodate:
In the past, clinicians frequently interrupted CPR to check for pulses,
perform tracheal intubation, or obtain venous access. The 2010 ACLS
Guidelines strongly recommend that every effort be made NOT to interrupt CPR
; other less vital interventions (eg, tracheal
intubation or administration of medications to treat arrhythmias) are made
either while CPR is performed or during the briefest possible interruption.
Interventions that cannot be performed whi... 阅读全帖 |
|
|
|
l******a 发帖数: 3803 | 43 Cutter to Jessica Yellin: Romney wins style points
CNN's Jessica Yellin speaks to Obama Deputy Campaign Manager Stephanie
Cutter about the hits and misses of the first presidential debate.
A full transcript of the interview is after the jump.
THIS IS A RUSH FDCH TRANSCRIPT. IT MAY NOT BE IN ITS FINAL FORMAT AND MAY BE
UPDATED.
JESSICA YELLIN, CNN CHIEF WHITE HOUSE CORRESPONDENT: That's right, Candy.
I'm here with Stephanie Cutter, who is the deputy campaign manager for the
Obama campaign, and ... 阅读全帖 |
|
l****z 发帖数: 29846 | 44 October 12, 2012 10:58 A.M.
Women weren’t wowed by Joe “Sex Symbol” Biden’s manners in last night’s
debate, when he repeatedly interrupted Paul Ryan with the kind of brazen
rudeness usually reserved for pundits on cable TV.
When I asked for reactions on Twitter, the consensus that emerged was that
Biden was seen as condescending, obnoxious, creepy, and generally unbearable
. Nichole Perreault compared the scene to “Thanksgiving when that rude,
inappropriate elder relative makes you want to rip h... 阅读全帖 |
|
g********2 发帖数: 6571 | 45 原文在这里:
Man this is brutal: DWS being booed this morning at the Florida
Delegation Breakfast ahead of the DNC: https://t.co/nhdCpyMrZO
— Frank Thorp V (@frankthorp) July 25, 2016
Democratic National Committee Chair Debbie Wasserman Schultz was repeatedly
interrupted and booed Monday as she sought to speak to Florida's delegation.
The Florida lawmaker, who will resign after this week's convention in
response to the disclosure of emails that showed top members of the DNC
working to boost Hi... 阅读全帖 |
|
M*******C 发帖数: 183 | 46 我的担忧是:我准备从家乡飞上海浦东,早上最早的飞机11点到达浦东,要赶当天下午
4点半上海飞美国的飞机,如果家乡起飞的飞机情况正常,那就没问题,但如果那个飞
机有什么情况走不了,延误了,我怕赶不上回美国的飞机,损失惨重,两个人的机票。
这种担忧,除了提前一晚住到上海之外,有什么办法可以挽回机票损失吗?
看到Delta卖的一个Trip INSURANCE,细节如下,但我不太懂我这种担忧的情况包括在
内吗?多谢!(我希望的不损失我的两张机票,下面这个Interruption是指我这种情况
吗?)
Purchase Trip Protection for a total of $35.00 USD for all passengers.
Allianz Travel Insurance covers up to the cost of the airfare portion of
your reservation and helps protect you against expenses should you be
required to cancel or interrupt your ... 阅读全帖 |
|
a***r 发帖数: 981 | 47 ☆─────────────────────────────────────☆
HappyAccount (Be Happy) 于 (Fri Jan 25 19:37:52 2013, 美东) 提到:
注册一个新ID向大家讨教一个重要问题。
我现在在一所排名五十左右的学校做理工科AP,第二年了还没有拿到funding,所以非
常着急。第一年建设实验室基本上什么也没做成。现在终于开始正常的工作。写
proposal, 设计新的实验,指导学生,教一门新的课课要花很多时间,有时每天花上
12 到 14 个小时在工作上是很平常。老婆在公司上班(accounting master, CPA),很
忙但是还能难对付。我们现
在有两个小孩,老婆每天接送,周末也是老婆在照顾他们,我们都没有时间做饭,请一
个阿姨专门给我们做饭。
现在的问题是老婆突发奇想要读一个accounting博士学位,再找faculty position. 我
听了以后眼镜都差点吓掉下来。而且她有这个想法的原因之一更是是让我无法理解:为
了更好地照顾家庭!(原因之二是公司boring, 她觉得做研究更合适).
她说 ac... 阅读全帖 |
|
y******n 发帖数: 47 | 48 周五面完最后一个onsite, 累的惨兮兮的, 好容易爬回家. 不管结果如何, 这段时间找
工作算是告一段落了.
下面把这段时间面试中被问到的题目整理一下, 供大家参考. 我也就不说具体是那些公
司了, 都是很典型的面试题, 到哪里都有可能会被问到.
* implement memcpy? How to improve? how to determine if a system is
32bit or 64bit?
* how is static keyword used in Java?
* a list of intervals, no overlapping and sorted, write a function to
insert an interval into the list and still keep the list sorted and no
overlapping.
* given a function on sorted dictionary to retrieve word by index,
string getWord(int i), how to i... 阅读全帖 |
|
k**w 发帖数: 376 | 49 >>fork,exec ipc,how many types of ipc
after fork, does new process get file handles and locks
>>what's are spin lock? are they better than mutex?
how many spinlocks work on smp and up architecure?
>>what will happen /can u have printf/printk inside an interrupt handler?
>>what's the difference between wake_up() and wake_up_interruptible() apis
in the linux kernel
when should sude which one, how it should be decided?
>>what's the difference between sleeep_on() and interruptible_sleep_on()
>>what ... 阅读全帖 |
|