Sponsored Content
Full Discussion: Threads v/s Connections
Top Forums UNIX for Dummies Questions & Answers Threads v/s Connections Post 35624 by photon on Wednesday 23rd of April 2003 11:41:53 AM
Old 04-23-2003
As far as I know there are two kinds of Threads in Java
and if there are more I hope someone would let me know.

There is a runnable Thread. An example would be an applet
thread painting itself in a given time frame to create motion.

The other is a synchronized thread. An example would be
an ATM machine at a bank where only one transaction
may occur on a givin account.

For shell and scripting languages I do not know. In Perl you
would probably use file locking. Can somone verfiy this?

The connection I believe you are talking about is a
connection pool to a database. A basic example of
this would be an array from 1..100 of connections
set up already. The advantage of this is eliminating
the time to setup a connection., since this is a long
process.

Last edited by photon; 04-23-2003 at 12:59 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Establishing connections

Hello there, just a quick question.....Can someone please explain the concept that enables you to establish a connection using the same userId Thanx (1 Reply)
Discussion started by: BigTool4u2
1 Replies

2. UNIX for Dummies Questions & Answers

Killing Connections

Say, for instance, that you are running a website. You are playing around, using netstat, etc. You notice all the people whom are connected to the site. You then wonder if there is a way to kill one or more of these connections. However, they are not PIDs so could you use the kill command? I was... (1 Reply)
Discussion started by: Phobos
1 Replies

3. HP-UX

HP-UX: X connections...?

Hello All, I have 2 qries about X connections on HP-UX : 1.How/where to determine whether "X connections" to the server are controlled. 2. How/where to determine whether "X11 connection" are tunnelled via ssh. 3. How/where to determine the "Time in minutes before unattended X terminals... (0 Replies)
Discussion started by: abhayh
0 Replies

4. UNIX for Advanced & Expert Users

Problems with connections

Hello everybody, Look, im having problems with connections from other server, i must recieve maximus 5 connections from the other server, when I run 'netstat -A | grep <THE_OTHER_SERVER_IP>' I can see how many connections I have already established, but when they open another connection, i mean... (8 Replies)
Discussion started by: Lestat
8 Replies

5. UNIX for Advanced & Expert Users

Threads and Threads Count ?

Hi all, How can I get the list of all Threads and the Total count of threads under a particular process ? Do suggest !! Awaiting for the replies !! Thanks Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies

6. SCO

UUCP connections

Hi There Is there a maximum number of concurrent incoming uucp connections to a server? SCO Openserver 5.07 Is there a parameter in some config file where this can be changed? Thanx (5 Replies)
Discussion started by: wjace
5 Replies

7. AIX

connections on server

I am using AIX 5.3, its a application server, i am giving the support of OS & Hardware only, now i want to check how many connections are connected to my server, means how many people using my server.:confused: (4 Replies)
Discussion started by: reply.ravi
4 Replies

8. Solaris

Passwordless connections

Hi All! Please help me with this situation: I have 3 servers configured with the following network 10.100.48.xx and I have configured on the passwordless connection, and it is working fine. Now the app vendor ask me to configure a 2nd IP address on each of the 3 servers with a different IP... (4 Replies)
Discussion started by: fretagi
4 Replies

9. Cybersecurity

1780 connections from one IP

Hello, one US IP having 1700+ connections when doing: netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head 1780 * ... * ... * i want to ask how to debug what this IP does? (3 Replies)
Discussion started by: postcd
3 Replies

10. UNIX for Advanced & Expert Users

Network Connections

I have a static IP 47.21.154.146 and two computers which I wish to talk to each other. The two IPs are 198.168.1.5 and 198.168.1.6. How do I do it. For example ls from one computer to the other. TIA (8 Replies)
Discussion started by: Meow613
8 Replies
asadmin-create-connector-connection-pool(1AS)			   User Commands		     asadmin-create-connector-connection-pool(1AS)

NAME
asadmin-create-connector-connection-pool, create-connector-connection-pool - adds a connection pool with the specified connection pool name SYNOPSIS
create-connector-connection-pool --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--password- file filename] [--terse=false] [--echo=false] [--interactive=true] [--steadypoolsize 8] [--maxpoolsize 32] [--maxwaittime 3000] [--poolre- size 2] [--idletimeout 300] [--failallconnections=false]--raname resource_adapter_name --connectiondefinition connection-definition_name [--property name=value[:name=value]*] pool_name Adds a new connector connection pool. Before you can add a new connector connection pool, you must first deploy the associated RAR file. This command is supported in remote mode only. OPTIONS
--user authorized domain application server administrative username. --password password to administer the domain application server. --host machine name where the domain application server is running. --port port number of the domain application server listening for administration requests. --secure if true, uses SSL/TLS to communicate with the domain application server. --passwordfile file containing the domain application server password. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. Default is false. --echo setting to true will echo the command line statement on the standard output. Default is false. --interactive if set to true (default), only the required password options are prompted. --steadypoolsize minimum and initial number of connections maintained in the pool (default is 8). --maxpoolsize maximum number of connections that can be created to satisfy client requests (default is 32). --maxwaittime amount of time, in milliseconds, that a caller will have to wait before a connection is created if a connection is not available. If set to 0 the caller is blocked indefinately until a resource is available or an error occurs (default is 60000). --poolresize the number of connections to be removed when idletimeout timer expires. Connections that have idled for longer than the timeout are candidates for removal. When the pool size reaches the steadypoolsize, the connection removal stops. --idletimeout the maximum time that a connection can remain idle in the pool. After this amount of time, the pool can close this connection (default is 300). --failallconnections if true, closes all connections in the pool if a single validation check fails. This parameter is mandatory only if the is-connection-validation-required is set to true. Legal values are: on, off, yes, no, 1, 0, true or false (default is false). --raname module name of the deployed resource adapter. In case of a resource adapter that is embedded in an application, the raname will be appname#raname. --connectiondefinition identifies one of the connection definitions in the deployment descriptor of a resource adapter. Value of connec- tionfactory-interface sub-element in the connection-definition element. --property name/value pair of the configuration properties of the managedconnectionfactory-class of the connectiondefinition for which the pool is being created. The UserName and Password are accepted by default for all pools. The escape character " OPERANDS
pool_name name of the connection pool to be created. Example 1: Using create-connector-connection-pool The JMS resource adapter that is prepackaged with the application server is used for this example. Before you can add a new connector con- nection pool, you must first deploy the associated RAR file. To deploy the RAR file: asadmin> deploy --user admin --password adminadmin jmsra.rar Command deploy executed successfully asadmin> create-connector-connection-pool --user admin1 --password adminadmin1 --steadypoolsize 20 --maxpoolsize 100 --poolresize 2 --maxwait 60000 --raname jmsra --connectiondefinition javax.jms.QueueConnectionFactory --property UserName=guest:Password=guest jms/qConnPool Command create-connector-connection-pool executed successfully EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-deploy(1AS), asadmin-delete-connector-connection-pool(1AS), asadmin-list-connector-connection-pools(1AS) J2EE 1.4 SDK March 2004 asadmin-create-connector-connection-pool(1AS)
All times are GMT -4. The time now is 09:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy