Questions tagged [pool]

A pool describes a cache of resources that an application can draw from to save instantiation time.

Pools typically refer to database connections but the term can be applied to graphics handles, files and other run-time processes. When the use of such a resource is complete but the application is still running, it will typically return the resource to the pool rather than release it.

1504 questions
-2
votes
1 answer

String literals in .class file not found for concatenation operation

Would it create an object in the constant pool for "Tech" before concatenating? I know for the first String 2 objects would be created. One in the constant pool and another one in the heap area to which s1 would be referencing. For the second String…
-2
votes
1 answer

pool yields 'local variable referenced before assignment' error even with .close() and .join()

I've written this function that works OK when called in its own jupyter notebook but when I save the notebook as a .py file and call it from another notebook, I get the following error: UnboundLocalError: local variable 'results' referenced before…
the_dude
  • 61
  • 7
-2
votes
1 answer

how to ensure multiprocessing code using the configured cpu cores?

I use multiprocessing Pool to run parallel. I tried with 4 cores first in HPC with sub. When it uses 4 core, the time is reduced 4 times compared to 1 core. When I check with qstat, several times it uses 4 cores but after that just 1 core, with…
pughon
  • 19
  • 5
-2
votes
1 answer

Multiprocessing Python Pool.map issue cannot concatenate str with int objects TypeError

I am not able to get to a my function by calling pool.map(func, iterable) syntax. My iterable is nothing but list of numbers on each line (no other comma seprated values like…
DaVinci007
  • 83
  • 12
-2
votes
1 answer

Does Java have a native object pool implementation?

I want to use an object pool for managing SMTP server connections, since they are very expensive to create (takes half of the total time of sending an email). So far I found the only options to be: Use Apache Commons Pool or some other 3rd party…
Benny Bottema
  • 11,111
  • 10
  • 71
  • 96
-2
votes
1 answer

Value is not storing into Manager().dict() inside the Pool()

This is the main code: if __name__ == '__main__': manager = Manager() mylist = manager.list() mydict = manager.dict() mylist.append('abc') mylist.append('xyz') for k in mylist: mydict[k] = manager.list() pool =…
-2
votes
1 answer

Connection pool in java

I need to create a custom connection pool in Java in such a way that if a user asks for connection and after using it returns to pool but he can maintain a reference to the connection by assigning it to some variable. Since he has returned…
-2
votes
1 answer

How to kill SQL Server process derived from determined ASP.MVC App

I have 3 ASP.MVC App on one Server (hostname), hence, I have 3 different AppPool. Also, I have one SQL Server DB and each of application using it. My question: Is it possible kill only these processes derived from one ASP.MVC App?
-2
votes
2 answers

C# MultiThreading: pool of calculators

I want to have a static (global) pool of calculators which are going to be accessed by a lot of different threads. After some researching I found out that the elements of Arrays are threadsafe. I thought that it would be good idea to store the…
ginfx
  • 3
  • 1
  • 4
-2
votes
1 answer

ASP.Net Application pool memory leak

I have a problem of "Memory Leak" in ASP.Net. I created a blank page made a connection with the database. The memory increases at a time when the page is accessed and not back to normal in no time! the highest peak memory was between 1GB !, then I…
Muller
  • 27
  • 1
  • 5
-2
votes
1 answer

python multiprocessing pool freezes

Using python 2.7 I have this code: import urllib2 import time import os import sys import multiprocessing from multiprocessing import Pool WORKER_COUNT = 10 def worker(url): print url try: response = urllib2.urlopen(url) …
max
  • 9,708
  • 15
  • 89
  • 144
-2
votes
1 answer

NOMP - Undefined string

I've done the instructions given at their github page: https://github.com/zone117x/node-open-mining-portal Now, I'm getting this error when I'm running undefined:1 Frs1QCJ","rewardRecipients":{"RrHHam7hYut6RnawbijVdA7j4nT3R67Eun":1,},"payment …
-2
votes
2 answers

Java String Pool changing the reference of object

i create a string object using assignment operator String nameVar = "Henry"; (Which makes a object in String pool/Constant pool with value of Henry) Then i assign again a new value to variable nameVar. nameVar = "Ann"; (Which makes a…
paul
  • 37
  • 4
-2
votes
2 answers

How to fix" xrange() arg 3 must not be zero" error in python using parallel programming?

import time from multiprocessing import Process, Pool import sys, os, inspect import urllib import re index ={} graph={} # Common words that we don't want to be part of the index g=['is','a','the','ga','all','to','under'] def rm_tag(data): p =…
-3
votes
1 answer

not supported instances of 'str' and 'int' in multiprocessing

I'm trying to run a multiprocess task in a function that receives the dataframe and the condition and return a new dataframe. My problem is that I receiving the "not supported instances of 'str' and 'int'" when I call the function. import…
Max
  • 221
  • 5
  • 20
1 2 3
99
100