How to use notification with parallel thread

Hello

I'm learning to use Notification for communication between threads. I still don't know how to use it. In my current project, I have a case to use it so I think I should implement this technique. This is my example I have a main sequence that I make a new thread. What I want, this is the new thread will make a task A when receive a notfication or out the thread when to stop the main sequence.

I don't know if using notification is advised here? Or do I have to use a reference data?

What if I want my son to task B if it receives another notification. Notification is always be useful?

Kind regards

Thang Nguyen

That's right, you can call the Notification - game directly from the MainSequence indeed.

Here is an example: the StopProcessA sequence is not absolutely necessary - it's just for purposes of modularity.

Best regards

Tags: NI Software

Similar Questions

  • How to use video with HTML5 Canvas alpha channel? is this possible?

    How to use video with HTML5 Canvas alpha channel? is this possible?

    Thanks in advance

    There is a video in HTML5 tag, as there is a canvas tag. But you want to alpha. He is not an alpha channel in HTML5 video.

    Transparency alpha in video Chrome | Web - developers of Google updates

    Tag video example

    video controls style="width:640px;height:360px;" poster="poster.png">
        type='video/webm;codecs="vp8, vorbis"' />
        type='video/mp4;codecs="avc1.42E01E, mp4a.40.2"' />
        kind="subtitles" srclang="en" default>

  • How to use photoshop with the same account on more than one laptop?

    How to use photoshop with the same account on more than one laptop?

    a single user license entitles you to two facilities simultaneous/activations.  so, what's the problem?

  • How to use FaceTime with Siri

    I you would Siri have been able to dial phone numbers using FaceTime, so my question is, is it possible? And if so, how?

    Hey MichaelnAvallone,

    Thank you for reaching out to help through Apple Support communities. Looks like you are wanting to make calls FaceTime with Siri. If so, I'd be happy to explain how to make this happen. First, you'll want to press on and hold the Home button or say "Hey Siri" to activate Siri. Then, for example, you can simply say, "make an audio call FaceTime to MOM" and Siri will only start a FaceTime call audio. If you say 'FaceTime Mom' Siri will begin a FaceTime call with video of this contact.

    The link below shows the ways to learn how to use Siri.

    Use Siri on your iPhone, iPad or iPod touch

    Kind regards.

  • How to use I2C with ELVIS

    I try to connect the sensor ultrasonic NXT to ELVIS, for this I need to use I2C. I was wondering how I can use I2C with ELVIS?

    The Council of ELVIS doesn't I2C communication. Our scanners high speed and the NOR-8451 are the only materials that support the I2C Protocol.

    Scott M.

  • How to use obiee with Highcharts

    Hello

    I'm looking for a method to use obiee with Highcharts.

    Highcharts is a library of javascript to create a nice line graph and pie...

    Thank you

    Hello

    It is up to you to be able to use Highcharts since it is not related to OBIEE himself.

    You can search, what how OBIEE can pass data to your JS library.

    A simple answer, usually a narrative view to create a JS object/array and pass it the values. There are many posts online, just don't google OBIEE and Highcharts but more of OBIEE and javascript or OBIEE visualization 3 rd-party (D3js, Google chart etc: still way to do things - pass values of OBIEE in the JS code).

  • How to use GetExecutionContextSession() in a Thread

    Hello

    I read the docs of PluginSDK about multithreading, but I do not understand how to use GetExectionContextSession() in my own thread (boost::thread).

    This causes InDesign to crash. What function do I need?

    Best regards, Jan

    Figured it out myself:

    How to start a new thread?

  • How to use Photoshop with some Photos from Apple

    How can I get Photoshop to be an external editor for the Apple Photos? I have CS5.1 and El Capitan.

    Hi davidl,.

    Photos App does not allow for any Publisher third interact with him directly (by design)

    You need to export your images App Photos and then open them in Photoshop.

    Refer to this article: How to use an external editor with Photos for OSX | IVous

    Kind regards

    Claes

  • How to use java with apex

    Hi all

    I m using apex 4.1 and the East * 11 g oracle database * I want to know how to use the java (servlet, jsp, all java in the apex technologies) and what I need to do to use java in the apex please guide me


    Thanks and greetings
    Akram

    Hello
    >
    How to configure the web server with the apex listener and what are the requirements,
    >
    You can find details here.http://www.oracle.com/technetwork/developer-tools/apex-listener/documentation/index.html

    Note that the Apex and ApexListener are two totally different things.

    Kind regards

  • How to use setFireActionForSubmit with the settings and capture the parameter

    Hello

    Can someone explain how to use setFireActionForSubmit.

    I extend the ShoppingCartPG controller. In the extended controller processRequest method I am adding a button to the table and implementation of the setFireActionForSubmit, so when the button is pressed it triggers the setFireActionForSubmit event.
    I need to pass the RequisitionLineId as a parameter which is present in the t associated with the ShoppingCartPG.

    I used the following code in the processRequest
    =================================
    ' public void processRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
    super.processRequest (paramOAPageContext, paramOAWebBean);
    OATableBean otbRN = (OATableBean) paramOAWebBean.findIndexedChildRecursive ("ItemTableRN");
    OASB OASubmitButtonBean = (OASubmitButtonBean) paramOAPageContext.getWebBeanFactory () .createWebBean (paramOAPageContext, "BUTTON_SUBMIT");

    oasb.setID ("addnInfo");
    oasb.setUINodeName ("addnInfo");
    oasb.setText ("additional information");

    String pageName = paramOAPageContext.getRootRegionCode ();
    Hashtable params = new Hashtable (1);
    params.put ("param1", pageName);

    Hashtable paramsWithBinds = new Hashtable (1);
    paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL (OASB, "${oa.encrypt.current.RequisitionLineId}"));
    oasb.setFireActionForSubmit ("addnInfoEvent", params, paramsWithBinds, false, false);

    otbRN.addIndexedChild (oasb);
    }
    =================================

    And I capture the event "addnInfoEvent" in processFormRequest method and trying to capture the RequisitionLineId I the past as a parameter.
    This is the code that I used in processFormRequest.
    =================================
    ' Public Sub processFormRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
    super.processFormRequest (paramOAPageContext, paramOAWebBean);
    OAApplicationModule localOAApplicationModule = (paramOAWebBean) paramOAPageContext.getApplicationModule;

    String strEvent = paramOAPageContext.getParameter (EVENT_PARAM);

    If ("addnInfoEvent".equals (strEvent))
    {
    Number format = 0;
    try {}
    Format = new Integer (ClientUtil.getDecryptedParameter (paramOAPageContext, "param2"));
    }
    catch (System.Exception e) {e.printStackTrace () ;}

    String outmsg = "line ID:" + size + ":" + strEvent;
    throw new OAException (outmsg, OAException.INFORMATION);
    }
    }
    =================================

    But I'm not able to capture the RequisitionLineId I sent as a parameter.
    Can someone let me know what I am doing wrong.

    Hello

    Because your table is not a tip so table using a submit button approach will not work because it won't give you rank of reference and you will not be able to enter the id of the corresponding command line, instead you use an icon of the image, which can be created through customization. Let me know if you need help in the code.

    Thank you
    Pratap

  • How to use "sketches with current brush" in the menu 3d

    Hi all

    I had a question:

    How can I work with "current sketch with brush" in the menu 3d photoshop cs6

    Help me!!!

    Hello! It must all firstly, make sure you are not using Windows XP, because the 3D functions are not available with this operating system.

    What are you trying to follow a tutorial video, or you have questions about how to use this particular function?

  • How to use Dropbox with InDesign?

    I want to use InDesign with Dropbox so that several people can access the InDesign files and photos. I already know that it is not possible for two people to change at a time so that it's not my problem. I was wondering if anyone had recommendations on how to structure the shared Dropbox folder so that the links to the images are preserved when people open on different computers. Other tips about Dropbox and InDesign are also welcome!

    The same way framing you things everywhere else.

    I worked on this cross-platform with dropbox and there is no problem to link at all.

    Bob

  • How to use mxf with Premiere elements files?

    Any ideas on how to use my canon xf100 with elements .mxf? In addition, I don't see a setting in menu when I start a project?

    http://www.Google.com/#sclient=psy-AB&hl=en&q=convert+MXF+AVI&OQ=convert+MXF+AVI&AQ=f&AQI= g - v4 & aql = & gs_l = hp.3... 0i15l4.4835.9343.0.12811.15.13.0.2.2.0.168.1138.11j2.13.0... 0.0.EDKQ8 U_mDpc & pbx = 1 & bav = we. 2, or.r_gc.r_pw., cf.osb & fp = e3a93c99a6099aba & biw = 1905 & bih = 701

  • How to use Flex with EJB3?

    Anyone know how to integrate Flex with Java?

    I have a project EJB3 with JPA etc...

    Must use Eclipse with the Flex plugin or can I only use Flex Builder and Eclipse for java classes? (preferring the second option)

    I'm going crazy, this need for my college work, as quickly as possible.

    Please an explanation or a sample.

    Thank you all.

    1. I need to write any Servlet to use the HTTP protocol to connect with Flex, then create the wsdl for my EJB3.

    There are many free tools that helps you to convert a Java application to webservice.  Other tools

    2 - this wsdl will create client side of my application, so I create my Flex normally using Blaze DS HTTP interface?

    I never used to Blaze DS, but it is based on Java.

  • How to use lightroom with desktop PC and mobile computers with the MacBook Pro? hav

    At home, I have a desktop PC with all my files from lr stored on drive NAS I want to be able to access and modify the macbook when away from home.

    1 is it possible or I need a Mac computer or replace cell phone based on windows?

    2 I use remote access to NAS or use previews and catalog sync?

    3 lr can exist with two file formats at the same time?

    I use a similar setup, with a Windows desktop and a MacBook Pro. My photos are on an external drive connected to the Windows computer, and synchronize the catalog and intelligent previews using Dropbox.

    See my post A Portable catalogue Lightroom on TipSquirrel.

    Also, see my post on using Lightroom with two computers.

    HD ++

Maybe you are looking for

  • Can not stop the AutoPlay of the video

    Even if I don't have an internet connection counter always hate sites with videos of AutoPlay. I used to just stop going to these websites, but now that sites do more and more, it is difficult to avoid. My monthly data use boosted last year. I enable

  • O2 iPhone 5 s phone line does not work with my map of Cyprus turkcell

    O2 iPhone 5 s phone line does not work with my map of Cyprus turkcell

  • DC7700 PSU upgrade.

    Hello. Im sure most of the people are getting bored with my frequent messages but I was wondering what I need to know to upgrade my diet or if someone can link me to a decent PSU. Im trying to run a graphics at least 512 MB of memory and all the maps

  • Envelope of LJP 1102w

    LJP 1102w do not print a size 6 3/4 (3 5/8 x 6 1/2 ") envelope. It apparently does not recognize this very commonsize envelope. It prints as if it were a business of size 10 envelope. I've updated the drivers with no luck. I tried to create an envelo

  • SCREEN BLUE WITH THE HP DIALOG BOX

    I recently connected my LCD TV as my monitor on my p6110y with vista home premium. I've made a few changes of small appearance (color intensity, size of the icons)... He says that these changes take effect after the next reboot, you want to restart n