Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to write Pro*C daemon process using multithreading? Post 302211054 by kachiraju on Wednesday 2nd of July 2008 01:51:37 PM
Old 07-02-2008
Java How to write Pro*C daemon process using multithreading?

Hello,

I am new to this forum and this is my first post here...

I have never worked on either Pro*C or Multithreading..Now, i have to write a Pro*C, Multithreading daemon process.. I dont know where to start.. Can anybody help me with examples?

1. need to write a Pro*C multithreading daemon process
2. Username,pwd,sid, no.of threads values should read from a file.
3. multiple database connections will be opened based on the no.of threads.
4. No.of records should be shared across threads
5. Handling thread synchronization.
6. Need to select the data (name column) from emp table where status = 0
7. Need to implement the below mentioned if condition
If the name = “xxx” update the status = 1 in that table
Else
Update the status = 2 in that table

Commit;

Can anybody help me ...

Thanks in Advance,Smilie

-Srini
 

10 More Discussions You Might Find Interesting

1. Programming

Multithreading in Pro*C

:confused: Hi! I have created a Multhreaded Application in Pro*C (using pthreads) with about 5 Threads running simultaneously. The Application is basically to Update a Centralized Table in Oracle, which updates different rows in the Table (Each Thread updates different rows!). The... (16 Replies)
Discussion started by: shaik786
16 Replies

2. Programming

Daemon process

Hi, I have to write a daemon process, which performs certain operations in the background. Now since it performs operations in the background, it should not display anything to the standard output. The problem is that it still displays, text on standard output. Can anyone tell me (it is... (2 Replies)
Discussion started by: s_chordia
2 Replies

3. Programming

What is a daemon process?

This is gonna seem really silly to almost evryone here - but I need to know : what is a daemon process? Thanks (6 Replies)
Discussion started by: Kanu77
6 Replies

4. Programming

How to write daemon?

Hi , I want to know how to write a daemon process. I also want to know the concept behind daemon processes. Any material or sample program will be great :) . Thanks in advance -sg (2 Replies)
Discussion started by: sg6876
2 Replies

5. Linux

daemon process

how i will write the daemon process,if any body have sample daemon process send me. (1 Reply)
Discussion started by: suresh_rupineni
1 Replies

6. Shell Programming and Scripting

How to write a daemon in Unix?

Hi I have a directory where sometimes a file will come (in a name format say file001.txt). I want to run a job (.ksh file) as soon as a new file comes into the directory. How can I write a shell script which will run in the background and monitor arrival of new file in the directory? ... (11 Replies)
Discussion started by: sbasak
11 Replies

7. Programming

How to find if a process a daemon ?

I have a scenario where I need to find if a process is a daemon process or not. This check needs to be done from within the process. I know there are no direct API's to do so. I have explored these options. 1. ctermid() - this can be unsuccessful as per the man pages 2. int devtty; if ((devtty... (7 Replies)
Discussion started by: vino
7 Replies

8. Shell Programming and Scripting

How to write daemon in UNIX

Hi Guys, I hope this is the right forum to post this. I have a directory where files will be dumped at any time of the day and I want to run scripts as soon as new files come into the directory. How can I write a daemon that detects when new files have been uploaded to the directory? ... (1 Reply)
Discussion started by: regie101
1 Replies

9. Programming

Daemon process

I wish to make a process run in the background, but only one instance of it, and not many, so when the program is loaded, it has to check whether another instance of the same program is running and if so to exit. How do I do this ? (4 Replies)
Discussion started by: sundaresh
4 Replies

10. UNIX for Beginners Questions & Answers

How to write a daemon script?

My requirement is to run two scripts simultaneously. Let say, script1.ksh is running in a loop : example: script1.ksh is: for i in 1 2 3 do script2.ksh 1 & #psedu code which is required to write here # if script 2.ksh is running, execute a script3.ksh (which actually check the... (2 Replies)
Discussion started by: sumitc
2 Replies
EX(4)							 BSD/i386 Kernel Interfaces Manual						     EX(4)

NAME
ex -- Ethernet device driver for the Intel EtherExpress Pro/10 and Pro/10+ SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file: device ex Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): if_ex_load="YES" DESCRIPTION
The ex driver provides support for Ethernet adapters based on the Intel i82595 chip. On the ISA bus, the card will be searched for in the I/O address range 0x200 - 0x3a0. The IRQ will be read from the EEPROM on the card. For correct operation Plug-N-Play support should be disabled. On the PC Card bus, the card will be automatically recognized and configured. HARDWARE
The ex driver supports the following Ethernet adapters: o Intel EtherExpress Pro/10 ISA o Intel EtherExpress Pro/10+ ISA o Olicom OC2220 Ethernet PC Card o Olicom OC2232 Ethernet/Modem PC Card o Silicom Ethernet LAN PC Card o Silicom EtherSerial LAN PC Card DIAGNOSTICS
ex%d: Intel EtherExpress Pro/10, address %6D, connector %s The device probe found an installed card, and was able to correctly install the device driver. ex%d: WARNING: board's EEPROM is configured for IRQ %d, using %d The device probe detected that the board is configured for a different interrupt than the one specified in the kernel configuration file. ex%d: invalid IRQ. The device probe detected an invalid IRQ setting. SEE ALSO
arp(4), netintro(4), ng_ether(4), ifconfig(8) HISTORY
The ex device driver first appeared in FreeBSD 2.2. AUTHORS
The ex device driver was written by Javier Martin Rueda. The PC Card attachment was written by Mitsuru ISAWAKI and Warner Losh. This manual page was written by David E. O'Brien. BUGS
Currently the driver does not support multicast. The Silicom EtherSerial card's serial port does not currently work. The Olicom OC2232 PC Card should work with the ex driver, but is cur- rently completely broken. BSD
July 16, 2005 BSD
All times are GMT -4. The time now is 01:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy