Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Subscribe
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Subscribe
    Home Development
    • Development

    Microsoft: There’s More Than 1 Way to Skin .NET 4

    Written by

    Darryl K. Taft
    Published July 31, 2009
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      Microsoft has released an experimental enhanced version of .NET Framework 4 Beta 1 that enables software transactional memory for C# programmers, known as STM.NET.

      In a blog post about the technology, S. “Soma” Somasegar, senior vice president of Microsoft’s Developer Division, said, “Transactional memory is a technology that frees developers from worrying about the mechanics of fine-grained locking and synchronization in multithreaded applications by providing transactional semantics for reading and writing to memory. It enables developers to focus on application logic instead of the details of memory I/O when building multi-core and many-core programs.”

      Dana Groff is the senior program manager for Software Transactional Memory and the Concurrency Runtime in Microsoft’s Developer Division’s Parallel Computing Platform group, in a blog post, said the official name for the STM .NET technology was “.NET Framework 4 Beta 1 Enabled to use Software Transactional Memory V1.0.”

      The STM .NET page on the Microsoft DevLabs site says “Software Transactional Memory (STM.NET) is a mechanism for efficient isolation of shared state. The programmer demarcates a region of code as operating within a transaction that is ‘atomic’ and ‘isolated’ from other transacted code running concurrently.”

      Moreover, the DevLabs description of STM says:

      ““Transactional memory is considered a promising technology by the academic community and is repeatedly brought up as a welcome technology for the upcoming wave of applications which scale on modern multi-core hardware. The goal is to be able to exploit concurrency by using components written by experts and consumed by application programmers who can then compose together these components using STM.”“

      Eric Newcomer, an independent contractor working in the office of the Chief Technology Officer (CTO) at Progress Software, said of the STM effort, “It isn’t a proven idea yet, that transactions provide an effective alternative for protecting shared memory areas against conflicting updates, but it is a very interesting concept and I think it’s a good thing Microsoft is releasing it for experimentation. There are a few other toolkits out there for this, mostly open source from what I can see, but none of them are integrated into a complete transactional environment the way the Microsoft kit is. I’ll be very interested in the results of this experiment.”

      Newcomer knows a bit about the issue of transactions as co-author of “Principles of Transaction Processing, Second Edition,” which was published in June. It is the follow-up to the first edition of the book, which was published in 1997 and has been used as an instructional text in computer science courses. He also was formerly CTO at IONA Technologies and TP Architect at Digital Equipment Corporation.

      Added Newcomer:

      ““The benefits of this model aren’t entirely clear. The transaction paradigm is designed to group operations on data to ensure they either succeed or fail as a unit, such as the debit and credit operations in a bank funds transfer. This toolkit proposes to apply that model as a kind of substitute for locking memory areas to prevent conflicting updates in parallel or concurrent operations on the same data. Unlike traditional disk based transactions, all in memory operations on data are lost if there’s a crash. To prevent this, the user can promote the transaction to a disk based transaction. But then the original idea of providing an alternative for protecting memory only data operations is really changed back to the more traditional model. It may be the case that users have sufficient requirements for protecting memory only data operations from conflicting updates but the questions about this model arise from the fact that it is using the transaction paradigm for a different purpose than it was originally designed for.”“

      Somasegar said STM.NET makes it easy to declare a region of code as atomic. And the .NET Framework’s just-in-time compiler rewrites the code within an atomic block to use transactional memory. “As a result, a significant amount of .NET code works without changes, including code that uses locks,” he said. “STM.NET also provides integration with System.Transactions so you can coordinate your atomic memory operations with existing transactional resource managers like MSMQ.”

      Moreover, Somasegar said, “One of the best aspects of STM.NET is its integration with Visual Studio tooling. STM.NET works with the Visual Studio 2008 debugger to allow you to see the values of transacted variables as they appear while running inside the Atomic.Do delegate as well as their values as they appear outside.”

      Darryl K. Taft
      Darryl K. Taft
      Darryl K. Taft covers the development tools and developer-related issues beat from his office in Baltimore. He has more than 10 years of experience in the business and is always looking for the next scoop. Taft is a member of the Association for Computing Machinery (ACM) and was named 'one of the most active middleware reporters in the world' by The Middleware Co. He also has his own card in the 'Who's Who in Enterprise Java' deck.

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.