(0) exportieren Drucken
Alle erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.
Dieser Artikel wurde noch nicht bewertet - Dieses Thema bewerten.

CloudBlobClient.ParallelOperationThreadCount Property

Updated: September 24, 2013

[This topic is part of the Windows Azure Storage Client Library 2.1. The current recommended version is Storage Client Library 3.0.]

Gets or sets the number of blocks that may be simultaneously uploaded when uploading a blob that is greater than the value specified by the SingleBlobUploadThresholdInBytes property in size.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
'Usage
Dim instance As CloudBlobClient
Dim value As Integer

value = instance.ParallelOperationThreadCount

instance.ParallelOperationThreadCount = value
'Declaration
Public Property ParallelOperationThreadCount As Integer

Property Value

The number of parallel operations that may proceed.

The following code example writes property values for a CloudBlobClient to a console window.


using System;
using System.IO;
using Microsoft.WindowsAzure.Storage.Blob;

public static void ListBlobClientProperties(CloudBlobClient blobClient)
{
    Console.WriteLine("BaseURI: {0}", blobClient.BaseUri);
    Console.WriteLine("Credentials.AccountName: {0}", blobClient.Credentials.AccountName);
    Console.WriteLine("DefaultDelimiter: {0}", blobClient.DefaultDelimiter);
    Console.WriteLine("BaseURI: {0}", blobClient.BaseUri);
    Console.WriteLine("MaxExecutionTime: {0}", blobClient.MaximumExecutionTime);
    Console.WriteLine("ParallelOperationThreadCount: {0}", blobClient.ParallelOperationThreadCount);
    Console.WriteLine("RetryPolicy: {0}", blobClient.RetryPolicy.ToString());
    Console.WriteLine("ServerTimeout: {0}", blobClient.ServerTimeout);
    Console.WriteLine("SingleBlobUploadThresholdInBytes: {0}", blobClient.SingleBlobUploadThresholdInBytes);
}

When you upload a blob that is greater than the value specified by the SingleBlobUploadThresholdInBytes property, it is automatically divided into blocks that are uploaded individually and assembled into the complete blob by the service. The ParallelOperationThreadCount property specifies how many blocks may be uploaded simultaneously.

The default value of the ParallelOperationThreadCount property is the minimum number of asynchronous I/O threads created on demand by the system thread pool.

The value of ParallelOperationThreadCount applies per logical operation, so if you are performing two operations, you will have up to the value of ParallelOperationThreadCount threads for each operation. The total number of threads available is limited by the number of threads available in the system thread pool.

Note that there is no benefit to setting this value to a number higher than the number of blocks that are being uploaded.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

 

Fanden Sie dies hilfreich?
(1500 verbleibende Zeichen)
Vielen Dank für Ihr Feedback.
Anzeigen:
© 2014 Microsoft. Alle Rechte vorbehalten.