Questions tagged [resource-management]

142 questions
0
votes
0 answers

Do objects destructors automatically get called when they go out of scope?

I'm reading through Scott Meyers Effective C++ and I have a question regarding resource management. In the book, he suggests that one should use the auto_ptr object to manage memory as it will automatically call the destructor of the object it…
wakey
  • 2,283
  • 4
  • 31
  • 58
0
votes
1 answer

ios Swift - Initializing many AVAudioPlayer vs many strings\paths

I'm developing an app which has about 500 different short audio sounds, each has its own mp3 file. I'm using AVAudioPlayer to play them. The audios shouldn't be play simultaneously. I thought of several options: Initializing 500 AVAudioPlayers…
hoshmy
  • 61
  • 4
0
votes
0 answers

Apache Spark. Pool of particular resources

I have a pretty complex pipeline that does several machine learning algorithms on a given data. One of the algos uses GPU for processing. I'd like to somehow distinguish several nodes of my cluster with available GPU units so the algo would run only…
evgenii
  • 1,190
  • 1
  • 8
  • 21
0
votes
0 answers

Force Stop execution while using Executor service

I am using executor service in my code the number of threads that are used is more than a 100 . Once the execution is complete , shutdown() method is called on the executor service and then awaitTermination() is called. The java class is invoked by…
0
votes
2 answers

Managing Pool of Generated Objects

I am working on a project where individual regions of a map are either generated dynamically, or loaded from a file if it has already been generated and saved. Regions are only loaded/generated as needed, and saved and discarded when they aren't…
Camander
  • 147
  • 1
  • 10
0
votes
3 answers

Does anybody knows a software that tracks multiple projects and resources?

I am looking something that: Allows me to create projects (with a duration) and assign needed roles for them (I don't care about tasks or a gantt chart in this tool, just a project view) Allows me to create people with one or more roles Set desired…
0
votes
3 answers

C++ Correct way to free a vector of a custom class

I have my custom class, like: class MyClass { public: int i; std:string name; void DoSomeStuff(); } and another class with a list of my custom class: class MyClassList { public: std::vector
Mendes
  • 17,489
  • 35
  • 150
  • 263
0
votes
1 answer

Cgroup usage to limit resources

My Goal: To provide user a way to limit resources like CPU, memory for the given process (C++). So someone suggested me to utilize Cgroups which looks like an ideal utility. After doing some research I have a concern: When we utilize…
Rambo
  • 103
  • 4
0
votes
0 answers

Fail to create shader resource view from file

I'm trying to write some code to read a list of file names from a config file named "TextureList.txt" and then use those files to create a shader resource view for each texture. The listing below shows what I currently have: LPCSTR…
Nick
  • 21
  • 4
0
votes
1 answer

How to handle resource management with multiple inheritance?

Say I have a base class and some derived classes: class Base1 { public: virtual ~Base1() {} virtual void update() = 0; }; class Derive1 : public Base1 { public: void update() override {/*...*/} }; class Derive2 : public…
Marson Mao
  • 2,935
  • 6
  • 30
  • 45
0
votes
1 answer

Best practice for culture resource management in web information systems

I have a general question on resource management. Let's say that i want to support all the languages in the world and I have the resource files for that purpose. Some of the values in the resource files replace for display string data that…
lionheart
  • 437
  • 11
  • 33
0
votes
1 answer

Is this a good way to manage initializations of COM?

I'm very new to anything involving Component Object Model, and I'm wondering if this method of managing calls to CoInitalize/CoUninitalize makes sense: COM.hpp: #pragma once namespace WindowsAPI { namespace ComponentObjectModel { class COM { …
Billy ONeal
  • 104,103
  • 58
  • 317
  • 552
0
votes
1 answer

Sharing huge byte arrays between asp.net users

I have somewhat huge arrays (1 MB * 100) of raw byte data in my ASP.Net application. They need to get broadcast to several users very frequently. A thread processes the data on the background and updates them from time to time. Could you please…
beebee
  • 280
  • 3
  • 18
0
votes
1 answer

How to use managed resources with scala-arm

How can I use scala-arm in the code here below so that inputStream is released automatically? def inflate(data: Array[Byte]): Array[Byte] = { val inputStream = new InflaterInputStream(new ByteArrayInputStream(data), new Inflater) …
j3d
  • 9,492
  • 22
  • 88
  • 172
0
votes
0 answers

How can I ensure that an SQLite3 connection get closed properly? or Should I use the DB con in the first place?

I have a an app composed of multiple classes. In most of these classes I need to access the data located in an SQLite3 DB of words that contains 60,000 rows (Note: each row is composed of a word, it's POS tag, and frequency). I don't know whether…
K.H.A.
  • 376
  • 3
  • 12
1 2 3
9
10