How to get exit status of multiple threads

Hello Everyone,
Please let me know how to solve the below problem.
I have one main thread. It creates 10 threads and joins them. Now i am interested in the exit status of each of the individual thread. Please let me know how to get the exit status of each thread.
Thanks in Advance.
Thanks & Regards,
Vasu

From the man page for thr_join:
int thr_join(thread_t thread, thread_t departed,   void   *status);
If a thr_join() call returns successfully with a non-null
status argument, the value passed to thr_exit(3THR) by the
terminating thread will be placed in the location referenced
by status.
To find the man page for any of the thr_xxx functions, run the command
man thr_xxx

Similar Messages

  • How to maintain the status of the Thread ?

    How to maintain the status of the Thread ?
    namanc

    I want to know whether a particular thread (java
    application) is completed successfully or not ...
    If the thread is not completed successfully then I
    want to restart the Thread.
    Actually this is the Task Scheduler Application ...
    If the particular task is not running successfully
    then I want to start the Task again ...
    namancThen it could look something like this: // loading the queue
    for each task
        add task to list of incomplete tasks
        enqueue task in work queue
    // dispatcher
    while !done()
        task = workQueue.dequeue();
        New Thread(task).start();When a task finishes, it can call a callback method on the dispatcher. The dispatcher looks at the task's status. If it finished successfully, the task gets removed from the list of incomplete tasks. Else it goes back on the work queue.
    There will be some syncing issues involved. You'll have to use wait() and notify()/notifyAll() to handle the situation where the work queue is empty, and all incomplete tasks are being worked on. And the case where the dispatcher wakes up after the notifyAll() and there's nothing to dequeue and nothing in the list of incomplete tasks.
    Clearly it needs some fine tuning, but I hope you get the idea.

  • How to get the data from multiple nodes to one table

    Hi All,
    How to get the data from multiple nodes to one table.examples nodes are like  A B C D E relation also maintained
    Regards,
    Indra

    HI Indra,
    From Node A, get the values of the attributes as
    lo_NodeA->GET_STATIC_ATTRIBUTES(  IMPORTING STATIC_ATTRIBUTES = ls_attributesA  ).
    Similarily get all the node values from B, C, D and E.
    Finally append all your ls records to the table.
    Hope you are clear.
    BR,
    RAM.

  • How to get system status and user status of service order

    Hi,
    I want to show user status and system status for service order in my report and i am using CRM_ORDER_READ function module to read the status, but it is returning lot of status records, could anyone please suggest how to get the system status and user status for service order.
    I did not find any clue for how to get user status, i can see the user status when i open the transaction using CRMD_ORDER.
    Regards,
    Kamesh Bathla

    Hi,
      Go to CRM_JEST table give your service order guid and get the status, pass this status into TJ02. You will get the status of your order.
    Regards
    Srinu

  • How to get the status of service in rac

    Dear all,
    how to get the status of service in rac.
    SQL> show parameters service;
    NAME                                 TYPE        VALUE
    service_names                        string      DEVDB, DEVDB1, devdb
    [oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
    PRKO-2120 : The internal database service devdb cannot be managed with srvctl.

    user7244870 wrote:
    Dear all,
    how to get the status of service in rac.
    SQL> show parameters service;
    NAME                                 TYPE        VALUE
    service_names                        string      DEVDB, DEVDB1, devdb
    [oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
    PRKO-2120 : The internal database service devdb cannot be managed with srvctl.
    Internal services cannot be managed with srvctl utility. Check if you have any user defined service in dba_services
    SQL> desc dba_services
    Name                                      Null?    Type
    SERVICE_ID                                         NUMBER
    NAME                                               VARCHAR2(64)
    NAME_HASH                                          NUMBER
    NETWORK_NAME                                       VARCHAR2(512)
    CREATION_DATE                                      DATE
    CREATION_DATE_HASH                                 NUMBER
    FAILOVER_METHOD                                    VARCHAR2(64)
    FAILOVER_TYPE                                      VARCHAR2(64)
    FAILOVER_RETRIES                                   NUMBER(10)
    FAILOVER_DELAY                                     NUMBER(10)
    MIN_CARDINALITY                                    NUMBER
    MAX_CARDINALITY                                    NUMBER
    GOAL                                               VARCHAR2(12)
    DTP                                                VARCHAR2(1)
    ENABLED                                            VARCHAR2(3)
    AQ_HA_NOTIFICATIONS                                VARCHAR2(3)
    CLB_GOAL                                           VARCHAR2(5)http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm

  • How to get Invoice status value in oracle payable

    Hi guys,
    I am new in oracle apps plz tell me how to get invoice status value of prepayment invoice type in payable.
    Navigation ->Payables->Oracle Payables ->Invoices->Inquiry->Invoices ->go to Invoice status block and open to Status LOV
    plz provide me sql query to find those status lov values and accounted values for any supplier & invoice num.
    it's urgent plz .......................
    Thanks guys.......

    The invoice approval status does not come from any table / lookup.
    Instead, Oracle builds it by calling the ap_invoices_pkg.get_approval_status function.
    You can also call it by passing invoice_id, payment_status_flag and invoice_type_lookup_code.
    All these 4 columns are present on the ap_invoices_all record.
    Hope this helps
    Sandeep Gandhi
    Independent Consultant

  • How to get System status Check Boxes into Query selection screen

    Dear experts,
    Pleas help in knowing how to get System status Check Boxes into quick view query (SQVI), selectionscreen.
    Regards
    Jogeswara Rao
    Edited by: K Jogeswara Rao on Jul 6, 2010 7:26 PM

    Problem solved through other Forum
    (Checkboxes not possible, some alternative solution to my requirement found)

  • How to get system status and user status ?

    how to get system status and user status for the given production order?
    In which PP table we can
    find these?
    Thanks&Regards
    Satish

    Hi Ram,
    Use the FM "STATUS_READ" to read both the system and user statuses for an Order.
    Alternatively, the following tables store the user and system status info:
    JSTO- Status object information
    JEST- Individual Object Status
    Hope this helps.
    Let me know if u need further information.
    Regards,
    Sonal

  • How to get invoice status columns available in invoice general screen

    Dear All,
    How to get invoice status in oracle invoices
    Invoice Status --> Validated, Never Validated, Cancelled etc
    please advice me.
    Thanks
    Rehan
    Edited by: 877432 on Oct 9, 2012 3:52 AM

    for
    >
    which is not giving this function kindly where i find these status.
    >
    re-read
    >
    plz see http://www.shareoracleapps.com/2010/10/api-to-find-ap-invoice-status.html
    also Where Is The Invoice Validation Status Stored? How Is The Invoice Validation Status Determined? [ID 301806.1]
    >
    those notes point about statuses - 'Validated' , 'Never Validated' , 'Needs Revalidation'
    if you want 'Unpaid' , 'Fully Applied','Available' etc instead of 'UNPAID', 'FULL', 'AVAILABLE' etc you can use lookups
    see note in http://andyblg.wordpress.com/2012/10/09/approval-status-for-invoice-in-r12/

  • How to get acknowledgement status for PO

    Hi!
    I would like to write a program which gets the acknowledgement status from IDoc Processing for a given purchase order number.
    How can I do that? In which table can I find the link between IDoc and PO? How to get the status?
    Thanks in advance
    Christian

    EDIDS -- table
    Check in the below link to update the staus and find the application objectof an idoc
    http://www.sapgenie.com/sapedi/idoc_abap.htm#Getting%20IDocs%20linked%20to%20Application%20documents

  • How to get the status of the method

    Hi,
    I have created a services and method to start the processes.
    Method:
    #!/sbin/sh
    . /lib/svc/share/smf_include.sh
    case "$1" in
    'start')
    /usr/local/proce start
    sleep 10
    'stop')
    /usr/local/proce stop
    echo "Usage: $0 { start | stop }"
    exit 1
    esac
    exit $SMF_EXIT_OK
    Here am exit with SMF_EXIT_OK.
    How can I get the status of start and stop whether it is successful or failure.
    In the place of SMF_EXIT_OK I need to return the status of start and stop.
    Please help me in solving this.
    When i check in smf-include.sh , i got the following exit level
    SMF_EXIT_OK=0
    SMF_EXIT_ERR_FATAL=95
    SMF_EXIT_ERR_CONFIG=96
    SMF_EXIT_MON_DEGRADE=97
    SMF_EXIT_MON_OFFLINE=98
    SMF_EXIT_ERR_NOSMF=99
    SMF_EXIT_ERR_PERM=100
    Regards,
    Kalai

    ss

  • How to suppress "exit status 0"  log mail for cron job

    Hello,
    we have a shell script to collect stats every day. it is croned.
    Recently, in the moning, get email to say "Output from cron job xxxx, in server xxx, exit status 0",
    As we know, the job is done well everyday without error(exit 0), but my question is how to let server to stop sending this useless alert email everyday.
    any trick?
    thank you.
    cc: the script
    case $1 in
    -? ) cat $0 | grep "#H" | grep -v "grep"
    exit
    esac
    case $1 in
    -? ) cat $0 | grep "#H" | grep -v "grep"
    exit
    esac
    if [ -n "$1" ]; then
    ORACLE_SID=$1
    else
    return
    fi
    if [ -n "$2" ]; then
    SCHEMA=$2
    else
    return
    fi
    TOOLS=/opt/dba/oraadmin/tools
    TABLE=xxx
    COLUMN=xxx
    . /opt/dba/oraadmin/tools/ora_env.sh -S $ORACLE_SID
    LOG_FILE=$SVR_LOG/dbms_stats_xxx.log
    echo $LOG_FILE
    $ORACLE_HOME/bin/sqlplus '/ as sysdba' << !EOF > $LOG_FILE
    set echo on;
    exec dbms_stats.gather_table_stats('$SCHEMA','$TABLE');
    exec dbms_stats.gather_table_stats('$SCHEMA','$TABLE', method_opt => 'for columns $COLUMN size 1', cascade => FALSE);
    DECLARE
    n_distcnt NUMBER;
    v_Owner varchar2(100) := '$SCHEMA';
    v_TABLE_NAME varchar2(100) := '$TABLE';
    v_COL_NAME varchar2(100) := '$COLUMN';
    BEGIN
    select round(num_rows/3,0) into n_distcnt from all_tables where owner = v_Owner and table_name = v_TABLE_NAME;
    --and then just set statistics
    DBMS_STATS.set_column_stats (v_Owner,
    v_TABLE_NAME,
    v_COL_NAME,
    distcnt => n_distcnt);
    END;
    exit;
    EOF
    Edited by: 795980 on Aug 2, 2011 7:43 AM

    795980 wrote:
    Hello,
    we have a shell script to collect stats every day. it is croned.
    Recently, in the moning, get email to say "Output from cron job xxxx, in server xxx, exit status 0",
    As we know, the job is done well everyday without error(exit 0), but my question is how to let server to stop sending this useless alert email everyday.
    any trick?
    thank you.
    cc: the script
    case $1 in
    -? ) cat $0 | grep "#H" | grep -v "grep"
    exit
    esac
    case $1 in
    -? ) cat $0 | grep "#H" | grep -v "grep"
    exit
    esac
    if [ -n "$1" ]; then
    ORACLE_SID=$1
    else
    return
    fi
    if [ -n "$2" ]; then
    SCHEMA=$2
    else
    return
    fi
    TOOLS=/opt/dba/oraadmin/tools
    TABLE=xxx
    COLUMN=xxx
    . /opt/dba/oraadmin/tools/ora_env.sh -S $ORACLE_SID
    LOG_FILE=$SVR_LOG/dbms_stats_xxx.log
    echo $LOG_FILE
    $ORACLE_HOME/bin/sqlplus '/ as sysdba' << !EOF > $LOG_FILE
    set echo on;
    exec dbms_stats.gather_table_stats('$SCHEMA','$TABLE');
    exec dbms_stats.gather_table_stats('$SCHEMA','$TABLE', method_opt => 'for columns $COLUMN size 1', cascade => FALSE);
    DECLARE
    n_distcnt NUMBER;
    v_Owner varchar2(100) := '$SCHEMA';
    v_TABLE_NAME varchar2(100) := '$TABLE';
    v_COL_NAME varchar2(100) := '$COLUMN';
    BEGIN
    select round(num_rows/3,0) into n_distcnt from all_tables where owner = v_Owner and table_name = v_TABLE_NAME;
    --and then just set statistics
    DBMS_STATS.set_column_stats (v_Owner,
    v_TABLE_NAME,
    v_COL_NAME,
    distcnt => n_distcnt);
    END;
    exit;
    EOF
    Edited by: 795980 on Aug 2, 2011 7:43 AM1) problem & solution have NOTHING to do with Oracle RDBMS & is Scripting 101 Basics
    2) posted script does NOT send any email so does not contribute to problem or solution.
    my question is how to let server to stop sending this useless alert email everyday.The obvious solution is to NOT send the message.
    code sending script to stop being a spam-o-gram generator

  • How to get one value from multiple duplication for a key figure field

    Hi expert,
          I have a infoprovider, with following format:
            employee     hourly_rate   action_type  count of action
         there are multiple rows for each employee, I want to create query as follows:
            employee     hourly_rate   action_type  count of action
         in which hourly_rate is constant , only retriving one value from multiple rows for one employee, count of action should be summarized. 
    how to get this hourly_rate.
    Many Thanks,

    Hi,
    put the employee in rows panel -> reaming object put it in free char panel.
    suppress the all result rows for the all object except employee .
    select the object -> go to query properties -> select display tab -> select result rows -> select suppress.
    select the employee -> go to query properties -> select display tab -> select result rows -> select always display. - now it will give employee wise hourly rate summarize data.
    Thanks,
    Phani.

  • LabVIEW DSC: How to get alarm status from the area?

    Colleagues,
    I have, lets say, 50 Shared Variables where alarming enabled. Some of these variables assigned to area, so I can get status of the entire area or acknowledge an entire area of alarms (prior to version 8.x there was groups of the tags).
    Now I would like to get alarm status from the entire area. How can I do it?
    In version 6 I was able to wire tag group to Get Alarm Summary Status. Now, in version 8, Alarm Status.vi can be wired to the array of the variables, but not to area. Is it possible to get all variables from the area?
    regards,
    Andrey.

    I am not sure if I should be posting my problem under this particular topic. I am having trouble understanding acknowledge alarm vi and what this vi is supposed to do is not clear to me yet.
    I have around 300 shared variables in my project and I have created a particular vi just to view the alarms that may pop up during runs. I created a main menu and this alarm vi can be accessed upon a button click in the main menu. Users get alarm alert based on sound configuration. Then he can navigate to the alarm vi and acknowledge the alarm. The alarm vi only contains alarm and event display found under DSC module.
    The problem is everytime I click the alarm button in the main menu, it takes around 2 minutes for the alarm vi to update which is very annoying and unsatisfactory in the middle of run. I am not sure why it happens and I haven't got any response from support yet. These shared variables are managed under 10 different library files that are set up based on different loops of the process (flow, pressure and so on).
    Then I looked into three alarm examples that ship with DSC module. None of these examples use acknowledge alarm vi. I implemented another vi similar to alarm demo vi in that example - containing multicolumn listbox. I created acknowledge event containing acknowledge button and used the acknowledge alarm vi under this event. Read vi alarm is under timeout event.
    When I click the acknowledge button  as soon as I see the alarm in multicolumn listbox, nothing happens - the color of font does not get changed to purple neither any alarms get acknowledged. I tried to aknowledge alarm by variable name or  alarms or alarm area, it does not give me anything. What is this acknowledge alarm supposed to do? I tried to find examples everywhere in the web that uses this particular vi and haven't found one yet. 

  • How to get invoice status column in ap_invoice_all table

    how to get the invoice_status column like "NEEDS RE VALIDATION"      in account payables tables.

    The invoice approval status does not come from any table / lookup.
    Instead, Oracle builds it by calling the ap_invoices_pkg.get_approval_status function.
    You can also call it by passing invoice_id, payment_status_flag and invoice_type_lookup_code.
    All these 4 columns are present on the ap_invoices_all record.
    Hope this helps
    Sandeep Gandhi
    Independent Consultant

Maybe you are looking for

  • Suggest file name in JFileChooser?

    I'm a newbie (student) to both Swing and Java in general. In using JFileChooser, It occurred to me that it would be nice to offer a suggested file name when saving files. For those of you who have used MS Word, when one saves a new file, Word offers

  • Is there a way to Sync Notes

    Is there a way to get the notes from Notes on the iPhone off to my Mac?

  • Why do we do kernal upgradation in central instance only

    Experts,    I have a question. Why do we do kernal up gradation in central instance only? what about other instances? How the up gradation takes place in other instances? points will be awarded to all helpful answers. Thanks in advance. Rajesh

  • Translate a changed field description in Web Dynpro

    Dear all, i have changed a the field description "Accounting Number" into "Personnel Number" in a Web Dynpro. (via SE80 -> Package GRAC_ACCESS_REQUEST -> Web Dynpro Application GRAC_OIF_REQUEST_SUBMISSION -> Tab "User details") If I test to dipslay t

  • Battery use iphone 4

    Ok is this normal use? I have push switched off and mail set to get manually, find my iphone is on along with location services but only switched on for facebook, find my iphone app( of course) and Grindr. Everything else is off. Last night I full ch