Sponsored Content
Special Forums UNIX and Linux Applications how to run more than two processes parallely Post 302511151 by venugopalsmartb on Wednesday 6th of April 2011 04:03:07 AM
Old 04-06-2011
CPU & Memory how to run more than two processes parallely

I would like to call a function called CIRCLE which is further beind called by other function but in a loop that CIRCLE fuction is being called. And this CIRCLE function starts another process which takes 3 hours to complete again, if i put that process in nohup &, I can go to the next command after completing that 3 hours process, What might be an alternative?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run processes in parallel?

In a korn shell script, how can I run several processes in parallel at the same time? For example, I have 3 processes say p1, p2, p3 if I call them as p1.ksh p2.ksh p3.ksh they will run after one process finishes. But I want to run them in parallel and want to display "Process p1... (3 Replies)
Discussion started by: sbasak
3 Replies

2. UNIX for Advanced & Expert Users

Run away processes

Hi, My server runnning on SUN Solaris rel.5.5.1. I have been facing this issues for years. I have some Xbase databases running on the server. User is using emulation software to telnet to server for accessing application. If user logout application abnormally - by closing windows session, then... (2 Replies)
Discussion started by: lowtaiwah
2 Replies

3. Programming

Run 4-processes concurrently

How can i run a back ground process.... I.e for example by using fork() i need to run seperate 4 background processes.. How can send a process to background ??? (9 Replies)
Discussion started by: ugp
9 Replies

4. UNIX for Advanced & Expert Users

script to run different shells which run different processes

Hi, Would like to ask the experts if anyone knows how to run a script like this: dtterm -title shell1 run process1 on shell1 dtterm -title shell2 run process2 on shell2 cheers! p/s: sorry if i used the wrong forum, quite concussed after watching world cup for several nights; but I... (2 Replies)
Discussion started by: mochi
2 Replies

5. Shell Programming and Scripting

Run a script parallely with different arguments

Hi! I want to run a script in parallel with different arguments. eg. start script.sh argA script.sh argB script.sh argC end Can someone please tell how to achieve this. Thanks in advance. (4 Replies)
Discussion started by: dummyix
4 Replies

6. Shell Programming and Scripting

Multiple Threads/Tasks to run parallely using the shell script

Scenario: I have two PCs (named as A & B) which would send some traps to my third PC (named as C). In PC C, I have to write a shell script such that it should accept the datas from both the PC-A & B parallely. So my question is, is it possible to have two different child threads/tasks... (2 Replies)
Discussion started by: nthiruvenkatam
2 Replies

7. UNIX for Dummies Questions & Answers

Maximum no of processes that can run

Is there any limit in UNIX that only a MAXIMUM no of processes can run at a time? If so, it exceeds then what would be the error we would receive? (4 Replies)
Discussion started by: jansat
4 Replies

8. Shell Programming and Scripting

How to run scripts parallely inside shell script?

Hi , I have 4 scripts example script1,script2,script3,script4 . I have to run script1,script2 and script3 parallely since this 3 scripts dont have dependencies . Once script1,script2 and script3 got completed successfully , I have to trigger script4. Can someone help me on this how to... (10 Replies)
Discussion started by: vinothsekark
10 Replies

9. Shell Programming and Scripting

Run multiple procedures from shell script parallely

Hi, I need to write a Shell Script wherein i will connect to a DB2 Database and run multiple DB procedures. I know how to do in a way where procedures will be called one after the other, like when first procedure finishes, second will be executed. But what i want is to run them at the same time... (11 Replies)
Discussion started by: Neelkanth
11 Replies

10. Shell Programming and Scripting

How to run feeding each other processes simultaneously?

Hello, I need to run multiple shell processes simultaneously and output of the first process shall be the input of the second process but first process is never ending so both should be running in parallel. I do not wish to wait the end of the first process. I am under ubuntu 16.04. ... (3 Replies)
Discussion started by: baris35
3 Replies
iv_event_raw(3) 					    ivykis programmer's manual						   iv_event_raw(3)

NAME
IV_EVENT_RAW_INIT, iv_event_raw_register, iv_event_raw_unregister, iv_event_raw_post - manage ivykis objects for event notification SYNOPSIS
#include <iv_event_raw.h> struct iv_event_raw { void *cookie; void (*handler)(void *); }; void IV_EVENT_RAW_INIT(struct iv_event_raw *this); int iv_event_raw_register(struct iv_event_raw *this); void iv_event_raw_unregister(struct iv_event_raw *this); void iv_event_raw_post(struct iv_event_raw *this); DESCRIPTION
iv_event_raw provides a way for delivering events to ivykis(3) recipients across thread and process boundaries. The intended event recipient calls IV_EVENT_RAW_INIT on a struct iv_event_raw object, fills in ->cookie and ->handler, and then calls iv_event_raw_register on the object. To generate an event, call iv_event_raw_post on the previously initialized struct iv_event_raw object. This will cause the callback speci- fied by ->handler to be called in the thread that the struct iv_event_raw object was registered in, with ->cookie as its sole argument. To deinitialize a struct iv_event_raw object, call iv_event_raw_unregister from the same thread that iv_event_raw_register was called from on that object. It is permitted to unregister a struct iv_event_raw object from any ivykis callback function in the thread it was registered in, including from a callback function triggered by this object, and it is permitted to free the memory corresponding to an unregistered object from its own callback function. iv_event_raw_post can be called from the same thread that iv_event_raw_register was called from, from a different thread in the same process, or even from a different process, and can safely be called from signal handlers. If posting an event only ever needs to be done from within the same process, see iv_event(3) for a lighter-weight alternative to iv_event_raw. Internally, iv_event_raw is implemented by registering a file descriptor (a struct iv_fd(3)) with the recipient thread's ivykis event loop, and by causing that file descriptor to become readable upon a call to iv_event_raw_post. If eventfd(2) is available, it will be used to procure the abovementioned file descriptor. If not, iv_event_raw will fall back to pipe(2) as the source of its file descriptors. eventfd(2) is preferred as it requires only one file descriptor table entry (while pipe(2) requires two), and has much less kernel overhead than pipe(2) has. SEE ALSO
ivykis(3), iv_event(3), eventfd(2), pipe(2) ivykis 2010-09-02 iv_event_raw(3)
All times are GMT -4. The time now is 08:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy