You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Mike Barry (JIRA)" <ji...@apache.org> on 2013/09/24 17:14:02 UTC

[jira] [Comment Edited] (LOG4NET-232) Use ReaderWriterLockSlim instead of ReaderWriterLock.

    [ https://issues.apache.org/jira/browse/LOG4NET-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776366#comment-13776366 ] 

Mike Barry edited comment on LOG4NET-232 at 9/24/13 3:12 PM:
-------------------------------------------------------------

Just wanted to inform you that this broke support for older versions of windows including XP, Vista < SP2, 2008 server core, Server 2003, and any itanium platform. (.NET 4.0>)

http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlockslim.aspx

Supported Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
                
      was (Author: jabbera):
    Just wanted to inform you that this broke support for older versions of windows including XP, Vista < SP2, 2008 server core, Server 2003, and any itanium platform.

http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlockslim.aspx

Supported Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
                  
> Use ReaderWriterLockSlim instead of ReaderWriterLock.
> -----------------------------------------------------
>
>                 Key: LOG4NET-232
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-232
>             Project: Log4net
>          Issue Type: Improvement
>    Affects Versions: 1.2.10
>         Environment: Any
>            Reporter: Aron Weiler
>            Assignee: Dominik Psenner
>            Priority: Minor
>             Fix For: 1.2.12
>
>
> ReaderWriterLock should be replaced with ReaderWriterLockSlim according to Microsoft for performance and simplification reasons.
> MSDN: http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlock.aspx
> The .NET Framework has two reader-writer locks, ReaderWriterLockSlim and ReaderWriterLock. ReaderWriterLockSlim is recommended for all new development. ReaderWriterLockSlim is similar to ReaderWriterLock, but it has simplified rules for recursion and for upgrading and downgrading lock state. ReaderWriterLockSlim avoids many cases of potential deadlock. In addition, the performance of ReaderWriterLockSlim is significantly better than ReaderWriterLock. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira