shared

svn repository on Windows network share

Is it safe for multiple computers to concurrently access an svn repository stored on a shared filesystem? I'm building an application in which each Windows client machine has a local working set of files, and can periodically synchronize with the rest of the team. From a server standpoint, I'd like to rely on nothing except a Windows sh...

How to determine JVM memory footprint with multiple processes on Linux

Hi, I’m trying to quantify the difference in memory footprint of a small java app performing the same process multithreaded vs multiprocess. All my tests are on Linux. When running multithreaded, it is relatively easy to determine the overall footprint and additional overhead per thread. When running the single threaded process, the J...

Installers with shared subinstallers?

We build a bunch of products that all have a similar structure, and in fact share installed subdirectories, documentation and various system configuration variables (environment variables, start menu items, ...) We've been using InstallShield. It works, but it is incredibly painful to configure a product installer one mouse click at a ...

Static vs. shared libraries for a media player

I'm not going to go into detail on the "media player" part except the fact that it will obviously use plug-ins, which will be a simple dynamic library that is loaded at runtime. Now, I could link those plug-ins dynamically to their dependencies, or I could link them statically. Both have their advantages and disadvantage - I'm not counti...

how to share files between program instances

Hi, my desktop application lets users add (~20MB) files, which should then be available for other users of the application. Currently I handle the uploads/downloads with my own code, but I am getting errors from file transfers that dropout, corrupted files, etc. I really don't want to deal with all this so I plan to use an existing file...

Singleton across classloaders/EJB:How to avoid multiple instance of JCS Cache due to multiple class loader/EJB's?

I want to use JCS (Java Cache System) to cache ldap queries which should be shared by multiple EJB's (class loaders) to avoid the duplicate searches. I have created a singleton wrapper to create only one instance of JCS cache but due to each EJB's having their own class loader, it creates multiple instance of JCS cache so ldap search re...

Is it safe to use fastcall in a shared library?

For example, let's say I have a function that will swap bytes in a 32 bit value for you: uint32_t byte_swap(uint32_t in); Well it seems silly to push that 32-bit value onto the stack and pop it off again, especially if we're going to be calling this function a lot, so let's pass it in through ECX: #if __FASTCALL_SUPPORTED_ /* Whate...

Any concept of shared memory in Java

AFAIK, memory in Java is based on heap from which the memory is allotted to objects dynamically and there is no concept of shared memory. If there is no concept of shared memory, then the communication between Java programs should be time consuming. In C where inter-process communication is quicker via shared memory compared to other mo...

Is a PHP session variable shared across running scripts?

Are session variables in the global $_SESSION array shared across scripts? Lets say I place a value into $_SESSION['box'], can another simultaneously running script store another value with the same key? Will they conflict? Or will it manage the actual variable values based upon the session ID from the client? ...

Class with just Shared functions - Why is it bad?

Hi, I have a class called MembershipHelper, which I am using in my ASP.NET project. It looks like this: Public Class MembershipHelper Public Shared Function IsMultiStoreUser() As Boolean return Roles.IsUserInRole(....) End Function Public Shared Function IsAdmin() As Boolean return Roles.IsUserInRole(....) ...

Shared memory access without semaphores

Hi All, using shared memory apis in linux, If I have one write(by A process) and only one read( by B process) do I still need semaphore.?. Is there a example to show, using sharing memory without semaphore will get into deadlock state in linux. ...

Share dll data among different processes.

I have to implement a dll in C# which contains a list of tasks. The responsibility of this dll is to manage these tasks. Different processes will interact with this dll, each for its own task, identified by the task ID. But since each process will have its own copy of the dll data, the challange is how to manage this list. This list has...

Linux: How to get full name of shared object just loaded from the constructor?

On Windows, several arguments are passed to the DllMain constructor: BOOL WINAPI DllMain( __in HINSTANCE hinstDLL, __in DWORD fdwReason, __in LPVOID lpvReserved ); From hinstDLL I can get the fully qualified file name of the DLL itself using GetModuleFileName(): LPTSTR str = new TCHAR[256]; int libNameLength = GetM...

httphandler shared hosting deployment

I have the httphandler on shared webhosting. It works. The httphandler webapp (virtual) dir of this httphandler does not have web.config and the whole shared user's website has web.config with only one uncommented statement: <compilation defaultLanguage="c#" debug="false"/> Now, I change it to: <system.web> <urlMappings ena...

JPA Entity (in multiple persistence-unit) in OSGi (Spring DM) Environnement is confusing me.

Hi, I'm a bit confused about a strange behavior of my JPA's related objects. I have three bundle : The User bundle does contain some user-related objects, but mainly the User object. The Energy bundle does contain some energy-related objects, and particularly a ConsumptionTerminal which contains a List of User. The Index bundle doe...

how a function in shared library to link an un-implmented function?

Is it possible to make a shared library in which exist some function that are not implemented? I'l like to make a shared library testDele.so and leave some of the functions in the testDele.so to be implimented by other people for example: library provider make the files: ====== testDele.c ============== #include <stdlib.h> #include...

How to manage Tomcat 6 libraries into subfolders under %TOMCAT_HOME%/lib?

I use Tomcat 6.0.20 and JDK 1.6.0.13. How can I load libraries from sub-folders of "%TOMCAT_HOME%/lib/" without taking the .jars out of sub-folders and putting them straight into "%TOMCAT_HOME%/lib/"? The reason I want to do this, is because many apps are going to be sharing lots of libraries. So, for the sakes of organization I want ...

what is shared variable in java

is there any concept of shared variable in java and if it is what is it? ...

Loading data to shared memory from database tables

Any idea about loading the data from database to shared memory, the idea is to fasten the data retrival from frequently used tables? ...

Managing a shared resource with functional programming style in JavaScript

How does the functional programming paradigm deal with shared resources that need to maintain state? I have a JavaScipt program that allows access from multiple callers to a shared resource, a authenticated HTTP session in this case. The resource has bunch of state information associated with it including things like credentials, cache...