Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Threadsafe


In the News (Mon 17 Jun 19)

  
  Re: safe and threadsafe
Safe call-outs are currently treated as threadsafe, but they can perhaps be made (almost) as fast as in the non-threaded RTS.
When the threadsafe call returns, the worker thread has to finish what it is doing.
Call-ins to the RTS are slower than in the non-threaded RTS because the scheduler has to run in a separate thread (not in the call-in thread).
www.mail-archive.com /ffi@haskell.org/msg01114.html   (651 words)

  
 What does 'threadsafe' mean?   (Site not responding. Last check: 2007-11-07)
If I had never heard of "threadsafe", I never would have thought that a foreign call could block other threads.
IIRC, the current GHC implementation executes the foreign call in the same thread that was previously used to execute the Haskell runtime.
If "threadsafe" is specified, a new "worker thread" is created that takes over execution of the other Haskell threads until the foreign call finishes in the original thread, at which time control is passed back to the original thread.
www.haskell.org /pipermail/ffi/2002-November/001003.html   (288 words)

  
 Maximum Press : Home : AS/400 Encyclopedia : Kernal Threads   (Site not responding. Last check: 2007-11-07)
Domino, to provide a competitive platform for multiuser/multithreaded servers, to provide thread performance equal to or better than the best of AIX and Windows NT, to support integration of existing code with threads, and to stage threadsafe OS/400 functions over several releases, based on application requirements.
A threadsafe function can be invoked simultaneously in multiple threads.
A function is threadsafe if and only if all functions it calls are threadsafe.
www.maxpress.com /encyclopedia/threads.htm   (461 words)

  
 What does 'threadsafe' mean?   (Site not responding. Last check: 2007-11-07)
I think Haskell compilers that cannot implement 'threadsafe' as it is implemented in GHC should reject Haskell programs which use it.
I think the ffi spec should be amended to say this (the spec currently says that such compilers may treat 'threadsafe' as meaning 'safe').
I think it would be perfectly meaningful to make calls which must execute in a separate thread (i.e., are 'threadsafe') but do not make callbacks into Haskell (i.e., could otherwise be 'unsafe').
www.haskell.org /pipermail/ffi/2002-November/001002.html   (232 words)

  
 Using global mutexes to run functions that are not threadsafe   (Site not responding. Last check: 2007-11-07)
One alternative you should consider when you need to call a function that is not threadsafe is using a global mutex to run these functions.
Because the API threadUnsafeFoo() is unsafe, any application or system service that uses foo() is not threadsafe because using it with multiple threads may result in corrupt data or have undefined results.
When a call to foo() (holding the FOO MUTEX) occurs at the same time as a call to wiffle(), the application's use of the not threadsafe function foo() causes DATA1 and whatever it represents to be corrupted.
www.redbooks.ibm.com /pubs/html/as400/v4r5/ic2924/info/RZAHWGLOCO.HTM   (319 words)

  
 User's Guide   (Site not responding. Last check: 2007-11-07)
Threadsafe Fortran 90, Draft 7 POSIX pthreads API
Threadsafe Fortran 95, Draft 7 POSIX pthreads API
Threadsafe FORTRAN 77, Draft 7 POSIX pthreads API
www.pdc.kth.se:81 /doc/SP/manuals/xlhpf/html/ug33.htm   (4089 words)

  
 What the Heck Is Threadsafe And Why Does CICS Care
A function is threadsafe if you can start it simultaneously in multiple threads within the same process.
A function is threadsafe if and only if all the functions it calls are threadsafe also.
When you create code that is threadsafe but still require sharing data or resources between threads, the most important aspect of programming becomes the ability to synchronize the threads.
www.mardon-y2k.com /what_the_heck_is_threadsafe_and_.htm   (2629 words)

  
 intro(3)
All libc functions are threadsafe unless otherwise indicated on their respective reference pages.
have threadsafe equivalents: registerrpc, svc_destroy, svc_freeargs, svc_getargs, svc_getcaller, svc_getreq, svc_getreqset, svc_register, svc_run, svc_sendreply, svc_unregister, svcerr_auth, svcerr_decode, svcerr_noproc, svcerr_noprog, svcerr_progvers, svcerr_systemerr, svcerr_weakauth, svcfd_create, svcraw_create, svctcp_create, svcudp_create, xprt_register, xprt_unregister
Functions in the math library may return conventional values when the function is undefined for the given arguments or when the value is not representable.
www.helsinki.fi /atk/unix/dec_manuals/DOC_51A/HTML/MAN/MAN3/0410____.HTM   (252 words)

  
 CICS TS 2.2 and Threadsafe   (Site not responding. Last check: 2007-11-07)
Since defining a program as threadsafe when it is not truly threadsafe can result in data corruption and "unpredictable results", the programmer has to know how to manually review programs, identify non-threadsafe code, and modify it to be threadsafe.
At the time of the threadsafe conversion, the data-compression had been in place for over a year, and no one was concerned with how well it worked.
What threadsafe changes is that the DB2 code no longer has to spin itself back to the QR TCB before returning control to the calling program.
www.commtel.net /~evans4/threadmak.html   (1906 words)

  
 JavaRanch Big Moose Saloon: threadsafe   (Site not responding. Last check: 2007-11-07)
Usually a servlet container will create one copy, and run as many threads through it as are necessary.
For this to work, you have to make sure your servlet is threadsafe - don't use static or member variables for request-specific values, for instance.
If you can't make your servlet threadsafe (usually because you are using non-threadsafe library code), then you must indicate this to the servlet container by adding "implements SingleThreadModel" to the servlet class definition.
saloon.javaranch.com /cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=7&t=001185   (627 words)

  
 CIS 307: Threads I
Since threads are executed concurrently in the same address space and control can be transferred between them at any time, we have to be very cautions in using them and make sure that concurrent executions of functions do not result in problems.
In the case of functions that that write to global storage, they can be made threadsafe if they use appropriate locks.
For example, many functions in the standard C library are not threadsafe, though threadsafe versions may also be available as we have seen for rand and rand_r].
www.cis.temple.edu /~ingargio/old/cis307f99/readings/threads1.html   (1333 words)

  
 CICS TS 2.2 and Threadsafe
It is crucial to remember that Threadsafe is not a determination made by CICS, but a promise made by the programmer.
While DFHEISUP is helpful in the process of identifying Threadsafe applications, the only way to ensure that an application is Threadsafe is to have a competent programmer who is familiar with the application review it in its entirety.
Be aware that marking a program as Threadsafe does not make it Threadsafe; this parm is used by the programmer to mark programs that have been proven Threadsafe.
www.reevans.com /thread.html   (1623 words)

  
 Threadsafe value types
threadsafe to assign a new value to it (can any value type be truely
> threadsafe to assign a new value to it (can any value type be truely
not threadsafe to assign a new value to it(can any value type be truely
www.dotnetmonster.com /Uwe/Forum.aspx/dotnet-csharp/27488/Threadsafe-value-types   (1053 words)

  
 RE: safe and threadsafe
I think the idea was that > 'threadsafe' was the most desirable, with 'safe' and 'unsafe' only > available for use if you wanted more efficiency and had some separate > guarantees that the extra efficiency was not at the expense of > correctness.
If I recall correctly, the motivation for keeping "safe" was that we wanted to be able to make calls into non-threadsafe C libraries.
Which, incedentally, would break the property that Simon mentions above: a non-threadsafe library would *require* foreign imports to be labelled "safe" rather than "threadsafe".
www.mail-archive.com /ffi@haskell.org/msg01110.html   (179 words)

  
 safe and threadsafe   (Site not responding. Last check: 2007-11-07)
After thinking about it a little, I'm not even ready to bet that "safe" would be that much faster than "threadsafe" for GHC...
We cannot do call-ins the same way as in the non-threaded RTS, because when "threadsafe" calls are around, we cannot return from schedule() (execution might have moved to a different worker).
After a call-in, the worker thread that was used to handle the call-in would still hold the capability and continue executing haskell code, so a safe call would have turned threadsafe.
www.haskell.org /pipermail/ffi/2003-February/001075.html   (381 words)

  
 [Opensource] Time to initialize dbobject
But if you think about it a >threadsafe object is only necessary if: > >1 - The object is actually shared between server requests > >or > >2 - The object is specifically shared between two threads without explicit >queues.
Access to the DBObjects through the cache IS >threadsafe.
You could easily >create a wrapper object where all methods to the object are synchronized, >and you would be fine.
www.javacorporate.com /pipermail/opensource/2002-June/017316.html   (294 words)

  
 DOTNET Archives -- November 2000, week 3 (#703)
Dynamic assemblies created using Reflection Emit APIs are threadsafe provided a true value is supplied to the bool parameter isSynchronized of the AppDomain.DefineDynamicAssembly methods.
Note, that there are specific threadsafe versions of these methods.
My hope is that there is no such problem and I only ask (to be sure) if it was design with multithreading in mind.
discuss.develop.com /archives/wa.exe?A2=ind0011C&L=DOTNET&D=0&T=0&P=80694   (564 words)

  
 How to write threadsafe singleton?
I'd like to know how to write threadsafe singleton.
One way to make it threadsafe is to make the getInstance() method synchronized, which is to say that this method cannot be called by several threads at the same time.
If no, what is the best practice to make a singleton threadsafe?
heavyz.sourceforge.net /zpetstore/questionlist/threadsafe_singleton.html   (508 words)

  
 safe and threadsafe
I have recently spent some time improving GHC's support for "threadsafe" foreign calls.
It _may_ be possible to implement "safe" in a way that is slightly more efficient than "threadsafe",
Many old C libraries keep state in global variables from one call to the next.
www.mail-archive.com /ffi@haskell.org/msg01103.html   (262 words)

  
 Bug ID: 4146524 SimpleDateFormat is not threadsafe.
The Format subclasses are not designed to be threadsafe.
Please include a clearly visable note in the documentation for how to use non-thread safe classes in a thread safe manner.
While it is well known that Swing isn't threadsafe, the format classes lack of thread safety is not.
bugs.sun.com /bugdatabase/view_bug.do?bug_id=4146524   (330 words)

  
 Arena Red | Bulletproof Threadsafe C++ Singleton
Arena Red » 4 Dec 2003 » Bulletproof Threadsafe C++ Singleton
It's the enforcement of this single instance aspect that makes the class truly a Singleton as opposed to just a class that you happen to only create one of in your program.
It's easy to see how to implement this at a basic level, but to get it completely bulletproof and threadsafe requires some extra care that is not evident until you realize the pitfalls that can occur.
www.bombaydigital.com /arenared/2003/12/4/1   (722 words)

  
 SQLite Frequently Asked Questions
You might have to get the other processes to close and reopen their connection to the database before they will be able to see the new table.
In the default distribution, the windows binaries are compiled to be threadsafe but the linux binaries are not.
"Threadsafe" in the previous paragraph means that two or more threads can run SQLite at the same time on different "sqlite3" structures returned from separate calls to sqlite3_open().
www.hwaci.com /sw/sqlite/faq.html   (2936 words)

  
 Bug ID: 4093418 DateFormat is not threadsafe
The DateFormat class does not appear to be threadsafe.
Please advise me if there is a design problem with my code.
My team does not have the time to read through each component that we use to ensure that it is threadsafe.
bugs.sun.com /bugdatabase/view_bug.do?bug_id=4093418   (493 words)

  
 Comp.compilers: Re: Threadsafe parser generators?
John commented on the question of threadsafe parsers:
Here is the documentation for Bison regarding threadsafe calls:
A "reentrant" program is one which does not alter in the course of
compilers.iecc.com /comparch/article/96-12-093   (396 words)

  
 Re: Threadsafe value types
Software > DotNet Languages Csharp > Re: Threadsafe...
If something is accessed in more than one thread it make no difference if it is a value or reference type.
But not > threadsafe to assign a new value to it (can any value type be truely > immutable?
www.talkaboutsoftware.com /group/microsoft.public.dotnet.languages.csharp/messages/275579.html   (297 words)

  
 "Threadsafe" WebObjects Applications
Dynamic elements have to be threadsafe, but if you stick to the WOAssociation method of accessing values and don't add any instance variables to your WODynamicElement subclass you will be fine.
Other than that, each EOEditingContext has its own instance of the EO so as long as your EC is locked you are safe.
It sounds daunting when you go to make an application threadsafe, but once you get into it there is usually little that needs to be done.
homepage.mac.com /kelleherk/iblog/C1216817469/E1769995701   (697 words)

  
 Java Forums - Threadsafe servlet solution
I'm wondering what the best way is to write a threadsafe servlet that writes and reads data from a simple file on the webserver.
What I want to do is keep user information in a simple file on the server.
Since the SingleTheadModel for servlets has been deprecated, writing threadsafe code is no different than in any 'regular' java class : sync either on the file, or sync the write method...
forum.java.sun.com /thread.jsp?forum=33&thread=440403&tstart=0&trange=15   (1092 words)

  
 Presentations: What Does It Mean to be Threadsafe In CICS Transaction Server R2.2?   (Site not responding. Last check: 2007-11-07)
Presentations: What Does It Mean to be Threadsafe In CICS Transaction Server R2.2?
This material was developed by Jim Grauel of the CICS Level 2 organization and has been presented at user group meetings such as the Transaction and Messaging (CICS) Technical Conference and SHARE.
The presentation covers the concept of threadsafe programs in CICS and discusses the concepts and considerations of writing threadsafe programs.
www-03.ibm.com /support/techdocs/atsmastr.nsf/WebIndex/PRS736   (77 words)

  
 CICS' Open Transaction Environment
A CICS task can now be tagged "threadsafe" instead of "quasirent" meaning it can, at least part of time, run under a CICS open TCB.
That "threadsafe" task can even do normally horrible things like issue "blocking" calls that may impose WAITs without much concern that the rest of CICS is impacted.
What that task can and should do is avoid, as much as possible, use of CICS services that force CICS serialization.
whatis.techtarget.com /tip/1,289483,sid10_gci838561,00.html   (695 words)

  
 Re: Mixing THREADSAFE and non-THREADSAFE code in the same
Prev by Date: Mixing THREADSAFE and non-THREADSAFE code in the same project(?)
Next by Date: re: Mixing THREADSAFE and non-THREADSAFE code in the same project(?)
Previous by thread: re: Mixing THREADSAFE and non-THREADSAFE code in the same project(?)
lists.apple.com /archives/mt-smp/2002/Oct/msg00018.html   (199 words)

  
 [OpenH323]Error in Pwlib ThreadSafe sample/test application   (Site not responding. Last check: 2007-11-07)
classes work I seem to have found that the Sample/Test application ThreadSafe has its TestObject Compare method incorrectly declared so that it does not override the PObject method and therefore never gets called.
The Compare method should have been declared as "const".
The test app appears to work because it never tests any cases that required the Compare method such as a PSafeSortedList or a FindWithLock() method.
www.openh323.org /pipermail/openh323/2003-October/063799.html   (121 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.