Threads in Unix shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Threads in Unix shell script
# 1  
Old 04-16-2008
Threads in Unix shell script

I need to run two different sql queries using two different threads in the same Unix shell script. I did not understand what do we mean by creating two different threads.
Does it mean two different statements containing SQL queires in that unix script?
# 2  
Old 04-16-2008
There are two major models for running tasks in parallel. The normal way to run two tasks in parallel in Unix is by using separate processes. Threads are a lighter alternative than processes, but I don't believe there is a way to start separate threads in a shell script. Does your SQL application support threads? Which Unix variant is this?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run a shell script in a loop with max number of threads

hi guys. i have a question for you i have a one file and inside this file there are 1000 lines and each line is a linux command running this commands takes long time so i want to create one bash script and run this lines in a loop with max number of threads for example i want to run... (2 Replies)
Discussion started by: avtaritet
2 Replies

2. Solaris

Monitoring Threads in unix

Hi All, I want to monitor threads of specific processes in mysql in Solaris 10. Is there any command to do it? (1 Reply)
Discussion started by: rohitmahambre
1 Replies

3. 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

4. Shell Programming and Scripting

Spawning multiple threads in Unix

Hi, I need to spawn mutilpe threads , each invoking a different set of shell scripts, in parallel. What would be the best way to do that. Any sample script would greatly help. I am a novice at Unix so any help is much appreciated. Thanks (5 Replies)
Discussion started by: neeto
5 Replies

5. AIX

Difference between writing Unix Shell script and AIX Shell Scripts

Hi, Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies

6. Programming

synchronizing multiple threads in unix

hi all! I wanted to know how to synchronize multiple threads in unix It would be better if someone give some code samples Thanx (1 Reply)
Discussion started by: bankpro
1 Replies

7. UNIX for Advanced & Expert Users

Unix threads information

Hi, Can someone tell help me on how to know the threads statistics on a unix machine similar to memory statisitcs. I woule like to monitor the Number of threads per process and total number of threads that a system can accomodate. Thank you mrag (1 Reply)
Discussion started by: mrag74
1 Replies

8. Programming

Windows and Unix Threads and Fibers

In "Programming Applications for Microsoft Windows" (ISBN 1-57231-996-8) I read this in a chapter about Fibers: What does it mean by that about Unix? (1 Reply)
Discussion started by: zookeeper
1 Replies

9. HP-UX

how to see the threads count of a process in hp unix?

hi,all: how to see the threads count of a process in hp unix? thanks (2 Replies)
Discussion started by: bugbugbug
2 Replies
Login or Register to Ask a Question