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
Notify caller function about process updates by callee in C#
I have a c# program which calls the function, the callee function, does some processes within a for loop. Now i want, as soon as the iterations are completed in the for loop, the caller function should get notified about the same. I know i can write…

Abbas
- 4,948
- 31
- 95
- 161
-1
votes
1 answer
How do I test if i got notified
I have a class with a method which somtimes uses notifyAll().
class A{
public void method(*some args*) //sometime i call for notifyAll()
}
I want to build a test to see if class A has called for notifyAll()
@Test
public void test(){
…

y nidam
- 1
-1
votes
2 answers
Need to clear my mind on methods wait() e notify();
class Q {
int n;
boolean valueSet = false;
synchronized int get() {
while (!valueSet)
try {
wait();
} catch (Exception e) {
}
;
System.out.println("Pego : " +…
-1
votes
3 answers
creating notification using django
Creating simple notification page using django.
I have tried many different code but none of the concepts worked for my project. whenever we click on the notification page notification like post created at a particular time should get…

SHAMILI
- 17
- 5
-1
votes
2 answers
how to make notify() works properly with wait()
I am trying to make a program simulating a very simple dishwasher which has three threads. The first thread is responsible for adding water, the second thread for opening the door of the device which should force the adding water thread to wait…
-1
votes
1 answer
unknown status 419 payfast notify url in laravel
i am trying to integrate PayFast payment gateway in my laravel application and i am getting 419 error which i think is very strange and below is the code.
i have configured everything as in the documentation of PayFast and i am checking it on ngrok…

Naveed Ali
- 1,043
- 7
- 15
-1
votes
2 answers
How to solve recyclerv view list update delay
There is a delay in updating the list of Recycler views. When items in the list are small, they are processed quickly, but when items are large, delays occur. The model of all items is the same, but it does not seem to be possible to use methods…

Junburg
- 350
- 5
- 23
-1
votes
1 answer
Thread behaviour on member variable lock
When running the below code, it throws IllegalMonitorStateException.
class Consumer {
private int capacity = 5;
private Queue queue = new PriorityQueue(capacity);
class ConsumerWaitNotify implements Runnable {
…

Nizam
- 573
- 1
- 5
- 12
-1
votes
1 answer
Which java thread get notified?
There are 10 threads wants to call a method method1() from a class.
All the 10 hits the methods at the same time . If the method is synchronized then only thread will get the lock and other 9 threads will be placed in waiting state. In case , the…

JavaUser
- 25,542
- 46
- 113
- 139
-1
votes
3 answers
wait and notify multithreading in c++
I have a question about wait and notify multithreading in c++.
I have a container that deque> lines, which is like below.
deque(waiting line for cashier)
front(deque)
cart1
- item1 - item2 - item3
index 2(deque)
cart2 - item1
…

jas
- 11
- 1
- 2
-1
votes
1 answer
Current thread itself waiting infinitely while trying to call wait() on another thread
I am trying to make another thread wait in below code but my current thread itself is waiting infinitely.
Below are two java classes Server.java that spawns runnable instances of ServerService.java.
When such running instance of "ServerService.java"…

nikhil kekan
- 532
- 3
- 16
-1
votes
3 answers
Calling notify() vs ending synchronized block Java
I'm new to thread programming and I have a confusion like below.Let's take the following code block.
synchronized(obj)
{
//do operations
//obj.notify();
//post operations
// last statement
}
Now until the "last statement" executes, the…

Juliyanage Silva
- 2,529
- 1
- 21
- 33
-1
votes
1 answer
select a part of a sentence instead of the whole sentence with clipboard
I want my program instead of selecting the whole sentence for a return, that a part of sentence is also possible if a copied that.
here's my code:
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
//check if current…
-1
votes
2 answers
how to make a method to notify time past in PHP
I need a method to notify my application that one minute has elapsed in php. This method is of type void
I try it:
public function minutes() : void {
ini_set('max_execution_time', 60);
$i = 0;
while ( $i < 60 ){
$i++;
…

Leandro Matilla
- 911
- 4
- 14
-1
votes
2 answers
Java Thread Class : java.lang.IllegalMonitorStateException
This is my first post so sorry if I do something wrong.
I'm trying to understand how work the threads in Java, in particular the synchronization, that's why I created a little piece of code which is supposed to print 1, 2, 3, 4, 5, 6 (in one thread)…

Kent
- 3
- 4