Questions tagged [resource-management]

142 questions
0
votes
1 answer

Is it possible to close a file directly after a function call

I have the following line: service = discovery.build('sheets', 'v4', credentials=pickle.load(open('google_sheets_token.pickle', 'rb'))) And while it's trivial to implement something like this: with open('google_sheets_token.pickle', 'rb') as f: …
David542
  • 104,438
  • 178
  • 489
  • 842
0
votes
1 answer

golang resource ownership pattern (files, connections, close-ables)

What is the proper way to manage resource ownership in golang? Suppose I have the following: db, err := sql.Open("mysql", "role@/test_db") am := NewResourceManager(db) am.DoWork() db.Close() Is it typical to always have the calling function…
Dan Jenson
  • 961
  • 7
  • 20
0
votes
0 answers

Is there an efficient algorithm for the following allocation problem?

I have the following allocation problem and I would like to know if there are some known efficient algorithms that I can apply here to solve the problem. The problem: There are N resources which have capacity C. There are 4 level of priority:…
0
votes
1 answer

How could 2 more than audio program speaks out simultaneously on a speaker?

I've got a question While I'm studying in operating system. As I learned, Operating System is a kind of resource manager and audio program works in my PC will use the speaker as a resource. So Audio program will use allocated speaker by OS. When I…
Ilak
  • 21
  • 1
0
votes
2 answers

No output from using array in class

I get a blank output. I'm a newbie and have been struggling on this for some time. I have gotten 0 errors by the compiler. Also what can be improved on this? How can I get the length of const char* as an int instead of size_t without having to use…
GigaHiga
  • 39
  • 1
  • 7
0
votes
0 answers

Control number of mappers on each node in cluster

I have a very small 2 node Hadoop-HBase cluster. I am executing MapReduce jobs on it. I use Hadoop-2.5.2. I have 32GB(nodes have 64GB memory each) free for MapReduce in each node with the configuration in yarn site as follows
PKU
  • 315
  • 5
  • 14
0
votes
0 answers

Design of (texture) resource system

For an open source game I wanted to redesign the resource management system but got into a dead end and need some pointers to some reading material or where to go now. Starting point was (mostly) a Loader class Header/Src Format of the…
Flamefire
  • 5,313
  • 3
  • 35
  • 70
0
votes
1 answer

How can I share RAM module via network in C++?

Just I need to know is there any way to share multiple RAM modules for hosting a client system? I used to write an infinitive calculation app that's used 1 mb from another pc in network by making a simple server client connection and spreading…
SM_SOF
  • 1
  • 4
0
votes
1 answer

What initializers/methods should I use for a UITableViewCell that creates all it's content programmatically?

I have a custom table view cell which I create pragmatically. No IBOutlets are used. I want to use it in interface Builder and in code. I want to use it in interface builder for static table view controllers. In code for dynamic table view…
3366784
  • 2,423
  • 1
  • 14
  • 27
0
votes
1 answer

Best practices for resource management when targeting multiple iDevices?

Considering that the family of iDevices is expanding, I guess this is a problem that more people than me have started to run into: How do you efficiently manage resources, such as 3D models, textures, full-screen images, etc when you are writing an…
simon
  • 3
  • 1
0
votes
0 answers

What process should be responsible for analyzing SQL data?

I recently started thinking about my projects being developed for self hosts and one of the biggest things on my mind is data analysis of data in an SQL Table. I know that SQL, Javascript, and PHP can handle data analysis, especially things like…
Josh Menzel
  • 2,300
  • 4
  • 22
  • 31
0
votes
1 answer

How to limit the maximum memory a process can use in Centos?

I want to limit the maximum memory a process can you in Centos. There can be scenarios where a process ends up using all of the available memory or most of the memory affecting other processes in the system. Therefore, I want to know how this can be…
0
votes
1 answer

Analysis of Cloud Resources Allocations

I'm trying to go through Openstack Cloud to find anything in the API that lets me get the data of Cloud Resource Allocation on hardware level. Does anyone know about any library or tool to poll hardware level resource allocation data? Thank you
madKC
  • 55
  • 1
  • 9
0
votes
1 answer

Quartz Scheduler- How to use exclusive resources?

I am investigating whether or not Quartz can be used for a project I am working on. I need to: Limit the execution of jobs to specific time ranges (which I know Quartz is great at). Limit jobs based on "resources". When I say resources, I…
0
votes
0 answers

should i increase threadpool?

I am seeing almost 99% of thread in park/wait condition and 1% in running out of threadpool of size 100. CPU usage is 25% and memory just 2GB out of 6 GB allocated. Should I increase threadpool size? I think so because system has enough resource…
Rakesh
  • 109
  • 2
  • 9