A notification system is a combination of software and hardware that provides a means of delivering a message to a set of recipients.
Questions tagged [notify]
754 questions
-1
votes
1 answer
Can some one explain why program doesn't end?
Hi, I'm new to the java thread.I'm trying to figure out what is the
wait() and notify() methods.So I wrote simple programme but I can't
find the reason for infinity execution.Please, can someone help me to solve this?
public class StairCase {
…

Tharindu Krishan
- 117
- 1
- 7
-1
votes
1 answer
how to limit notification(notify)
I want to show just a one-time error message. But not other classnames ex (classname success message show itself every time but error message just one time shows). When I triggered error message last error message must close and open new error…

Er.Er
- 135
- 2
- 14
-1
votes
1 answer
What's a good way to have a BLE slave notify a Master when something happens?
I'm setting up the configuration for a BLE Slave/peripheral which has two control variables each of which must be readable/writable from the Master but each can also be modified by buttons on the Slave. I want to include a mechanism for the Slave…

Lance F
- 23
- 5
-1
votes
1 answer
On-Call Notify with Twilio
I am trying to configure on-call scheduling notify with Twilio to make REST API call for SMS and Phone call. We are using OOB workflow “On-Call: Assign and Notify”. This workflow has block called Send SMS notification. How can we pass Incident…
-1
votes
1 answer
Android Map set markers to different places
I'm new to Android Studio and I was wondering if it is possible to set markers as a programmer in google maps to landmarks and restaurants to notify the user if current location is near one of those markers?
-1
votes
1 answer
Adapter does not refreshing
I want to refresh my adapter in two situation but nothing happend. First I tried called
adapter.clear();
adapter.addAll(filteredList); //filtered list is a new list to show on adapter
adapter.notifyDataSetChanged();
The second I tried refresh…

Expiredmind
- 788
- 1
- 8
- 29
-1
votes
3 answers
Indefinite thread waiting in Java
I am trying to generate Odd/Even numbers using 2 threads using wait notify.
But It is just printing 1.
Below is the code:
Even.java
public class Even implements Runnable {
private int i; private Object ob
public Even(int i,Object o) {
…

Nicky
- 1,025
- 3
- 15
- 29
-1
votes
1 answer
How can I use two NotifyIcons in C# without the second one disappearing when i hover the mouse over?
I Have a VS2008 app that needs to display two notifyIcons in the System tray. One is the main application icon, which allows quick access to the GUI. The second is a "new message" icon, which is displayed when a new message arrives, and hidden when…

Simon
- 9,197
- 13
- 72
- 115
-1
votes
1 answer
wait() notify() is not working as expected
I have a MyService class which contains a nested BroadcastReceiver class:
public class MyService {
private Object lock;
public class MyReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent…

user842225
- 5,445
- 15
- 69
- 119
-1
votes
1 answer
How to make a thread wait until something happens without blocking the others
I am making a barbershop simulation using threads in java. A barbershop consists of a waiting room with n chairs and a barber room with several barber chairs. If there are no customers to be served, the barber goes to sleep. If a customer enters the…

PhoenixQoH
- 67
- 8
-1
votes
2 answers
When and How to use wait() and notify()
I found this example from SO. Now, I was trying to understand the usage of wait() and notify()/notifyAll(). In which scenario and why do we need this.
class BlockingQueue {
private Queue queue = new LinkedList();
private int…

Ravi
- 30,829
- 42
- 119
- 173
-1
votes
2 answers
Java - order of execution after wait
all. I have a question for Java wait-notify mechanism. The answer is is there a guaranty that the threads will be executed in this order - from last to the first etc. the result always will be 100, 99, ... , 1 ? This is the snippet of code:
public…

DPM
- 1,540
- 2
- 18
- 40
-1
votes
2 answers
How to pause and resume a thread in Java game development
I need to know how to pause a thread and resume it after checking a condition.
Thread t = new Thread () {
public void run() {
while(true) {
update();
repaint();
try {
Thread.sleep(50);
}…

user3705482
- 25
- 3
-1
votes
4 answers
Why is that sleeping inside a thread causes problems with `notify`?
Driver.java
public class Driver {
static Object obj = new Object();
public static void main(String [] args) throws InterruptedException
{
Thread thr = new Thread(new Runnable(){
@Override
public void…

Mathew Kurian
- 5,949
- 5
- 46
- 73
-2
votes
1 answer
How to call three threads in Java alternatively
Given the number 1, 2, 3, 4, 5, 6 , 7, 8, 9, 10, 11, 12
I have Three threads, say Thread-1(print 1), Thread-2(print 2) and Thread-3(print 3) and then again hread-1(print 4), Thread-2(print 5) and Thread-3(print 6) and so on.. How I can call them in…

guru84
- 87
- 1
- 3