由买买提看人间百态

topics

全部话题 - 话题: notifi
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
i**p
发帖数: 902
1
来自主题: Java版 - java ,wait ,notify notifyall
I have the same question as this.
--------------------------------------------
I am confused a bit about wait and notify/notifyall.
I know there is a lock for every java object. I know wait will release the
lock for other thread. How about notify/notifyall? Does notify/notifyall
realse the lock it is holding for other thread?
-------------------------------------------------
There are 2 different answers for it on this link
http://stackoverflow.com/questions/5999193/java-wait-notify-not
Could an... 阅读全帖
i**p
发帖数: 902
2
来自主题: Java版 - java ,wait ,notify notifyall
For the example below, if "lock.notify();" on thread B wakes up the thread A
but does not give up the lock, how does the thread A re-claim the lock and
start running?
More clear, can code_A run right after lock.notify(); or have to wait until
code_B is done?
Thread A
synchronized (lock)
{ ...
while ...
lock.wait();

code_A
....
}
Thread B
synchronized (lock)
{ ...
lock.notify();
code_B
}

thread
i**p
发帖数: 902
3
来自主题: Java版 - java ,wait ,notify notifyall
Thank you 2 to join the discussion. Let me make some changes to my example
code and make the code_B takes more time.
1. Is it possible that code_A starts running after lock.notify() but before
the for loop is done?
2. When does thread B release the lock, after lock.notify() or after end_of_
critical?
All of us agree the answer is "after end_of_critical", right?
3. If the answer for Q1 is "Yes", how can code_A run when the lock is still held by another thread, because the thread B will not releas... 阅读全帖
l*********a
发帖数: 444
4
今天很不幸的收到一个闯红灯的 notice of violation. 照片上的所有的信息都是在红
灯的情况下我们右转了。当时车在only 右转的道上,没有红灯情况下不可右转的牌子
。我们所有的行为都没有违反交通规则。但不知为何收到一个这样的罚单。想要plead
not guilty。上面写的是要notify court at least 7 days before scheduled pay by
date. 我想请教的是怎样notify court,写信还是打电话。要上庭的话我们需要做什
么样的准备。车当时在right turn only的道上,打有右转向灯,有一张图是在白线之
前full stop,还有一张图是车出白线有两个车位的样子,其实是看清楚路况在右转。
多谢了
w******n
发帖数: 352
5
I have sent my manuscript to one journal two weeks ago, and didn't learn
from them since then. The journal's website says they will notify author
within 1-2 weeks if they don't like the manuscript. But will they also
notify author if they decided send the ms for outside review? I could
contact them a couple days later.
f**********n
发帖数: 10
6
最近正在研究H1-b transfer时回国的事情,计划6月离职后回国待到8月再去新公司上
班。在板上和网上找了n多帖子,貌似都是不推荐回国。但是最近和新公司律师联系,
他们提出可以consular notify,只要有valid H1-b visa就行(原公司的),具体说明
如下:
Consular notify only means that you need to travel internationally to "
activate" your H-1B status - so that you must enter pursuant to the H-1B
approval notice for Zynga. We will file the H-1B transfer petition on your
behalf in the coming weeks. Once it is approved, we will then forward to you
in China the original approval notice for the Zynga H-1B, an... 阅读全帖
u**7
发帖数: 200
7
【 以下文字转载自 H_visa 俱乐部 】
发信人: ui87 (hello), 信区: H_visa
标 题: 【急】请教H1B签证事宜 (filed as a consular notify)
发信站: BBS 未名空间站 (Fri May 30 20:22:48 2014, 美东)
大家好,
由于最近要安排旅行计划,急问下H1B签证事宜。
由于3,4月份出美国休假去了,我的H1B(目前已经approve下来, approval notice已
经收到)被file成了consular notify,因此需要出境美国,(到北京)去申请签证。
我有OPT
请问下,我是必须要10月1日之前去申请吗,还是可以推迟到10月1日之后再去申请,之
前时间用OPT呆着。
非常感谢大家。
m*****7
发帖数: 90
8
来自主题: EB23版 - 公司律师不给申请E-Notify
如题,律师说等有了receipt number后,上USCIS的网注册一个用户名,就可以用email
收update了,所以不需要E-Notify (G-1145)。
请问是这样吗?没有E-Notify是不是一旦RFE就不能及时知道了?
谢谢!
m*****7
发帖数: 90
9
公司律师交485时不给申请E-Notify,说有了收据后可以上USCIS网查case的状态。想请
问一下,这两种方式在给出的信息方面有什么区别吗?怕不申E-Notify错过某些有用的
信息。
d**u
发帖数: 9
10
【 以下文字转载自 Software 讨论区 】
发信人: ddlu (dd), 信区: Software
标 题: 请推荐一个email alert/notifier
发信站: BBS 未名空间站 (Thu Feb 2 12:23:57 2006)
在学校里使用Outlook连到Exchange Server上收email, 由于信件太多,占用内存太大,
不是很方便。
想找一个单纯的Email notifier,不用运行outlook, 只要连到Exchange Server上,有新
的邮件的时候通知一下就可以了。最好是有google desktop 的plugins 之类的。
多谢多谢
z****y
发帖数: 6864
11
IRS reporting rule: In the spirit of helping the business community, Obama
announced that he would support a policy change to undo one piece of the new
health care law that required businesses to notify the Internal Revenue
Service of purchases over $600.
The idea behind the measure was to ensure that all income gets disclosed and
help generate more tax dollars to help pay for the cost of the reforms. But
small businesses had declared the new rule burdensome and Republicans call
it a "job-killin... 阅读全帖
w*******g
发帖数: 140
12
NIH给发了一个notify email,说phase 1 review 结束。查了一下era,里面有Impact/
Priority Score and percentile. Status is "Pending Council Review".
这是不是说我的proposal通过了第一轮,但还有一轮review才能出结果?不知道中的机
率有多大?请有经验的大侠给讲讲,谢谢了
f****b
发帖数: 314
13
50% applicants got such notify
J******7
发帖数: 130
14
用fedex寄的,昨天查状态,已经寄到了
但是什么时候才收到notify啊?
不是说24小时内吗?
大家一般多久收到啊?
d********a
发帖数: 165
15
请问I-539申请收到后一般几个工作日回复? 以前递交申请的经验是申请费会立即收纳.
上周五USCIS收到申请,但是现在还没有cash check,也没有e-notify。
多谢!
y***r
发帖数: 16594
16
FBI Director James B. Comey notified key members of Congress Sunday
afternoon that after reviewing all of the newly discovered Hillary Clinton
emails the agency stands by its original findings against recommending
charges.
Comey wrote that investigators had worked “around the clock” to review all
the emails found on a device used by former congressman Anthony Weiner that
had been sent to or from Clinton and that “we have not changed our
conclusions expressed in July.”
b**y
发帖数: 130
17
来自主题: Immigration版 - 485 approved, do I have to notify HR?
Sorry, can't type Chinese while at work.
I'm wondering if I have to notify my company's HR that I have got my green
card. Does approval of I485 mean invalidation of my H1B visa at the same
time?
Don't really want to let my boss know that I have green card already. But if
I have to disclose that as a legal obligation, I will do it.
l*********d
发帖数: 315
18
来自主题: Immigration版 - APP called USCIS case notifier
app called "USCIS Case Status Notifier" available in android market (https:/
/play.google.com/store/apps/details?id=com.spinachsoftware.immigration.uscis
.casestatus).
k********o
发帖数: 1139
19
我就不明白为啥那些律师这么懒!E-Notify 1145表就是一张特简单的表,在最下面填
几行信息的事情,而且485,765和131只要填一份就行。申请者可以在USCIS收到
package并接受申请后及时收到通知,比正式的收据要早一个星期左右。
要说这个表确实没有什么实质意义,就是用于收件这个第一个环节而已。但很多人
都是想知道自己的申请是不是被接受了,越早越好啊,填这么一个表也就2分钟
的事。不过,反正不是律师自己的申请,他们当然不着急。
c*****1
发帖数: 1826
20
no need. I received my receipt about 7days later after delivery. The e-
notify only gives you a few days advantage.
m******6
发帖数: 6262
21
Gainesville just called me to notify me the NZ dragon was delayed for
several days. why they do this? they never called me before.
l***a
发帖数: 12410
22
【 以下文字转载自 Piebridge 讨论区 】
发信人: abcxyz2046 (CrazyDeath), 信区: Piebridge
标 题: Facebook 暗恋通知器 (Crush Notifier), 大家开始用了没?
发信站: BBS 未名空间站 (Sun Apr 24 17:17:52 2011, 美东)
哦,好奇,问问。
g****n
发帖数: 3370
23
来自主题: Internet版 - gmail notifier登录窗口
【 以下文字转载自 Software 讨论区 】
发信人: gqshen (香江游子), 信区: Software
标 题: gmail notifier登录窗口
发信站: BBS 未名空间站 (Tue Apr 3 00:01:33 2007), 转信
每次开机都出来,选了记住密码了,所以每次都要
点一下才登录。有没有办法不让它出来?
z***h
发帖数: 405
24
forward it to a Yahoo or MSN email, you will be notified in Yahoo!messenger
or MSN messger
e*****t
发帖数: 1005
25
来自主题: Java版 - java ,wait ,notify notifyall
if thread A is in waiting because of your lock.wait(), then thread A already
has the lock. How come thread B can obtian the lock and call the notify()?

A
and
until
i**p
发帖数: 902
26
来自主题: Java版 - java ,wait ,notify notifyall
My testing result seems the code_A can be started running right away once
the notify() is called on Android emulator.
Has you "snowslope" checked the link I provide? Any comment?
r*****l
发帖数: 2859
27
来自主题: Java版 - java ,wait ,notify notifyall
Since you have the code, you should be able to run it and know the answers
to your questions. Seems that you are testing others :)
A will wait until B finishes the loop.
B releases the lock after the sync block.
To answer your question 3, you need to understandthe thread states. When A calls
wait(), A is put in the WAITING state. It will wait until a notify() or
notifyAll(). When that happens, A is NOT put int the RUNNABLE state, but
BLOCKED state. A waits for the lock in the BLOCKED state. When... 阅读全帖
s*******e
发帖数: 3042
28
来自主题: Java版 - java ,wait ,notify notifyall
Just put aside the wait/notify scenario and think what happens when one
thread tries to obtain a lock but finds it under possession of another
thread -- it will block until the first one passes the critical section and
releases the lock.
This is exactly what happens after thread A wakes up while B still holds the
lock.

before
of_
still held by another thread, because the thread B will not release the lock
until it reaches to end_of_critical ?
i**p
发帖数: 902
29
来自主题: Java版 - java ,wait ,notify notifyall
Thank you! The topic is well discussed.
Because the lock.wait() gives up the lock, some of us assume lock.notify()
releases the lock too.
The confuse

calls
h*********e
发帖数: 247
30
来自主题: Java版 - java ,wait ,notify notifyall
try this, all clear.
import java.util.concurrent.atomic.AtomicInteger;
public class ThreadExample
{
public static volatile AtomicInteger count = new AtomicInteger(0);
public static Object lock = new Object();
/**
* @param args
*/
public static void main(String[] args)
{
Runnable a = new Runnable() {
@Override
public void run()
{
synchronized(lock)
{
System.out.println("A ... 阅读全帖
L******k
发帖数: 2945
31
来自主题: Linux版 - 有啥好的mail notifier
mail-notification sucks (even after recompile w/ ssl spt)
现在在用thunderbird+alltray,有啥其他可以自己config的mail popup notifier?
z*******6
发帖数: 133
32
来自主题: EB23版 - TSC 485 批准到 SRC1290077063?
做了一个扫描器,看到SRC1290077063已经批准了
大约 Dec 14 RD
只感查了2000 个,明天再看看进展
SRC1290076824:I485 : Post Decision Activity :On February 24,
2012, we mailed you a notice that we have approved this I485 APPLICATION TO
REGISTER PERMANENT RESIDENCE OR TO ADJUST STATUS. Please follow any
instructions on the notice. If you move before you receive the notice, call
customer service at 1-800-375-5283.
SRC1290076825:Card / Document Production
SRC1290076826:I131 : Post Decision Activity :On Febru... 阅读全帖
b***k
发帖数: 2829
33
TSC 在2月份交的有些申请已经在系统里面了。 可是我的还不在。。。 :(
现在扫描结果:
SRC1290137370 | Initial Review :: On January 31, 2012, we received this
I765 APPLICATION FOR EMPLOYMENT AUTHORIZATION, and mailed you a notice
describing how we will process your case. Please follow any instructions
on this notice. You will be notified by mail when a decision is made, or
if the office needs something from you. If you move while this case is
pending, please use our Change of Address online tool to update your
case with your new addre... 阅读全帖
b*****l
发帖数: 8603
34
2007年的,不知道你们说的是不是这个。祝好。
medical ethics more than hundred cases
Sep 24th, 2007, 12:17pm
1. A 25- year old mother refused immunization for her 2-month old son. The
social worker spoke to the mother. (Important for Board examination)
Next step in management: immunization should be given for the benefit of the
child.
2. A 30-year old mother refused surgery for suspected appendicitis for her 6
-year old daughter. The social worker spoke to the mother. (Important for
Board examination)
Next step in ma... 阅读全帖
p***s
发帖数: 584
35
这是NSC所有10月,11月RD的I485 case的状态,真实琳琅满目,大家留作参考吧。
第一个数字是count,后面是相应的status。
其中522个fee waived的是政治避难。
这些485 case是我用程序把9月末到11月末
所有NSC的receipt number扫描一遍抓出来的,
应该包括所有10月的case和绝大部分11月的case。
那时候都是review状态,所列出的时间就是RD。
接下来我打算每隔几天再跟踪这些485 case,
由于有RD,可以知道各个RD的批准情况。我到时会在这里update的~
16800: we received this I485 APPLICATION TO REGISTER PERMANENT
RESIDENCE OR TO ADJUST STATUS, and mailed you a notice describing how we
will process your case. Please follow any instructions on this notice.
You will be notified by m... 阅读全帖
N***a
发帖数: 149
36
来自主题: MedicalCareer版 - MEDICAL ETHICS 137 cases
MEDICAL ETHICS 137 cases:
________________________
1. A 25- year old mother refused immunization for her 2-month old son. The
social worker spoke to the mother. (Important for Board examination)
Next step in management: immunization should be given for the benefit of the
child.
2. A 30-year old mother refused surgery for suspected appendicitis for her 6
-year old daughter. The social worker spoke to the mother. (Important for
Board examination)
Next step in management: surgical removal of the ap... 阅读全帖
l*********u
发帖数: 19053
37
来自主题: Automobile版 - 看了一下2014 mdx
刚reall
2014 MDX
POWER TRAIN:AUTOMATIC TRANSMISSION
Recall number: 13V571000
Recall date: 11/14/2013
Problem Summary:
AMERICAN HONDA MOTOR CO., INC. (HONDA) IS RECALLING CERTAIN MODEL YEAR 2014
ACURA MDX AWD VEHICLES MANUFACTURED MAY 6, 2013, THROUGH OCTOBER 14, 2013.
THE BOLTS THAT ATTACH THE DRIVE SHAFT TO THE AUTOMATIC TRANSMISSION TRANSFER
ASSEMBLY MAY NOT HAVE BEEN PROPERLY TIGHTENED. AS A RESULT, THE BOLTS COULD
LOOSEN POSSIBLY ALLOWING THE SHAFT TO DETACH.
Consequence:
IF THE DRIVE SHAFT D... 阅读全帖
s**********8
发帖数: 25265
38
来自主题: MedicalDevice版 - CE mark
The CE markCE marking (also known as CE mark) is a mandatory conformance
mark on many products placed on the market in the European Economic Area (
EEA). With the CE marking on a product the manufacturer ensures that the
product is in conformity with the essential requirements of the applicable
EC directives.[1] The letters "CE" stand for "Conformité Européenne" ("
European Conformity").[2]
Contents [hide]
1 Meaning
2 Countries requiring the CE marking
3 Rules underlying CE marking
4 Self-certif... 阅读全帖
z****e
发帖数: 54598
39
来自主题: JobHunting版 - Java编程讨论:LinkedIn的H2O
因为wait的monitor在l上,而不是在ti上
这个问题可以单独剥离出来看,如果写成一堆的话
那就非常不容易阅读了,这是代码
List l = new ArrayList();

public void h() throws InterruptedException {
ThreadInfo ti =null;

synchronized(l){
if (l.size() >= 2) {
ThreadInfo hThread = l.get(0);
ThreadInfo oThread = l.get(l.size() - 1);
if (hThread.isH() && oThread.isO()) {
synchronized(hThread){
hThrea... 阅读全帖
z****e
发帖数: 54598
40
来自主题: JobHunting版 - Java编程讨论:LinkedIn的H2O
因为wait的monitor在l上,而不是在ti上
这个问题可以单独剥离出来看,如果写成一堆的话
那就非常不容易阅读了,这是代码
List l = new ArrayList();

public void h() throws InterruptedException {
ThreadInfo ti =null;

synchronized(l){
if (l.size() >= 2) {
ThreadInfo hThread = l.get(0);
ThreadInfo oThread = l.get(l.size() - 1);
if (hThread.isH() && oThread.isO()) {
synchronized(hThread){
hThrea... 阅读全帖
h**u
发帖数: 144
41
来自主题: JobHunting版 - LinkedIn 面经
用了两个blocking queue, 还请大侠指教!
import java.util.concurrent.LinkedBlockingQueue;
public class H2O {
LinkedBlockingQueue hQueue = new LinkedBlockingQueue();
LinkedBlockingQueue oQueue = new LinkedBlockingQueue();
Object o = new Object();
public void h() throws InterruptedException {
hQueue.put(Thread.currentThread());
synchronized (o){
System.out.println(Thread.currentThread().getName() + ".h,
notify");
o.notify()... 阅读全帖
h**u
发帖数: 144
42
来自主题: JobHunting版 - LinkedIn 面经
用了两个blocking queue, 还请大侠指教!
import java.util.concurrent.LinkedBlockingQueue;
public class H2O {
LinkedBlockingQueue hQueue = new LinkedBlockingQueue();
LinkedBlockingQueue oQueue = new LinkedBlockingQueue();
Object o = new Object();
public void h() throws InterruptedException {
hQueue.put(Thread.currentThread());
synchronized (o){
System.out.println(Thread.currentThread().getName() + ".h,
notify");
o.notify()... 阅读全帖
m*****3
发帖数: 13701
43
来自主题: Automobile版 - 求问 怎么注销拍照?
你在VA?给DMV打个电话或者上网查?在车版上混了这么长时间了,你咋还犯这个错误
?看这个:
http://www.dmv.virginia.gov/vehicles/#selling.asp
1. Sign your vehicle title over to the buyer/recipient.
On the front of the title in Section A, sign your name, provide the name and
address of the buyer/recipient and the odometer reading of the vehicle. If
you are selling the vehicle, complete "Sales Price" which is also in Section
A. If you are donating the vehicle, write "charitable gift" as the sale
price on the title.
2. Hand over the title to ... 阅读全帖
m*****3
发帖数: 13701
44
你在VA?记着数清楚钱。买家交税,你不交。看下面官方的说明。包子!
https://www.dmv.virginia.gov/vehicles/#selling.asp
1. Sign your vehicle title over to the buyer/recipient.
On the front of the title in Section A, sign your name, provide the name and
address of the buyer/recipient and the odometer reading of the vehicle. If
you are selling the vehicle, complete "Sales Price" which is also in Section
A. If you are donating the vehicle, write "charitable gift" as the sale
price on the title.
2. Hand over the title to the buyer / ... 阅读全帖
r*******t
发帖数: 99
45
来自主题: JobHunting版 - 请教L家生成H2O水分子的题。
贴个用1个lock,两个condition实现的。Code in Python:
def H():
# 加入一个H,检查是否可以形成H2O,若可以则notify另一个H和一个O
# 若不可则wait for cvH
global nH, nO, nH2O, lock, cvH, cvO
lock.acquire()
nH += 1
if nH >= 2 and nO >= 1:
nH -= 2
nO -= 1
nH2O += 1
print 'generating H2O molecule NO.%d' % nH2O
lock.release()
cvH.acquire()
cvH.notify()
cvH.release()
cvO.acquire()
cvO.notify()
cvO.release()
else:
lock.releas... 阅读全帖
s**********8
发帖数: 25265
46
来自主题: MedicalDevice版 - FDA Modernization Act of 1997
Overview of FDA Modernization Act of 1997, Medical Device Provisions
CDRH FDA Modernization Act of 1997 Page1
Foreword
Preface
Introduction
Investigational Device Exemptions
Premarket Approval
Premarket Notification [510(k)]
Device Classification
Device Labeling
Device Tracking
Postmarketing Surveillance
Global Harmonization
Medical Device Reporting and Recall Reports
Establishment Registration
Device Standards
Other Sections Related to Medical Devices
Foreword
The Center for Devices and Radiolo... 阅读全帖
l*********u
发帖数: 19053
47
来自主题: Automobile版 - MDX recalls
MDX
POWER TRAIN:AUTOMATIC TRANSMISSION
Recall number: 13V571000
Recall date: 11/14/2013
Problem Summary:
AMERICAN HONDA MOTOR CO., INC. (HONDA) IS RECALLING CERTAIN MODEL YEAR 2014
ACURA MDX AWD VEHICLES MANUFACTURED MAY 6, 2013, THROUGH OCTOBER 14, 2013.
THE BOLTS THAT ATTACH THE DRIVE SHAFT TO THE AUTOMATIC TRANSMISSION TRANSFER
ASSEMBLY MAY NOT HAVE BEEN PROPERLY TIGHTENED. AS A RESULT, THE BOLTS COULD
LOOSEN POSSIBLY ALLOWING THE SHAFT TO DETACH.
Consequence:
IF THE DRIVE SHAFT DETACHES WHIL... 阅读全帖
r****m
发帖数: 70
48
来自主题: JobHunting版 - LinkedIn 面经
H notify 一次,O notify 两次
class H2OLock{
int o = 0;
int h = 0;
public synchronized void callH() throws InterruptedException{
if(h < 1 || o < 1){
h++;
wait();
}
if(o>0){
o--;
notify();
}
System.out.println("H");
}

public synchronized void callO() throws InterruptedException{
if(h < 2){
o++;
... 阅读全帖
r****m
发帖数: 70
49
来自主题: JobHunting版 - LinkedIn 面经
H notify 一次,O notify 两次
class H2OLock{
int o = 0;
int h = 0;
public synchronized void callH() throws InterruptedException{
if(h < 1 || o < 1){
h++;
wait();
}
if(o>0){
o--;
notify();
}
System.out.println("H");
}

public synchronized void callO() throws InterruptedException{
if(h < 2){
o++;
... 阅读全帖
c********t
发帖数: 5706
50
来自主题: JobHunting版 - 再问一个blockingqueue的问题
原谅我再执着问一次。synchronized 等待状态是block,不需要唤醒, 和wait是有区别
的。notify是唤醒wait状态的。到底会不
会有enque, deque同时wait的时候呢?如果没有,那notify只会wake对方的莫个thread
, 我写了一个最简单的,没用
notifyAll, 用的notify. 这个也是每次只唤醒一个线程。但如果有enque,
deque同时wait,这代码会有应该有deadlock,但是测试了很多次,上百线程,也没有
发生deadlock. 请大牛们帮看看下面代码有问题吗?
public class BlockingQueue3 {
private Deque queue;
private int limit = 10;
public BlockingQueue3(int pLimit) {
limit = pLimit;
queue = new ArrayDeque<>();
}
public synchronized void put(T ite... 阅读全帖
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)