小编Far*_*osa的帖子

sharepoint 2010保留政策不起作用?

我创建了一个简单的文档库,并希望为此启用保留策略,为此我创建了一个文档库并导航到以下步骤:

1)文档库设置 - >信息管理策略设置

2)选择"文档"作为内容类型.

3)检查"启用保留",

4)点击"添加保留阶段"

5)在这里我定义了"创建日期"+ 1"日",应该需要移动回收站.

根据上面定义的策略,创建日期超过一天的文档应该自动移动到回收站,但它没有移动或做任何事情,在这种情况下有什么帮助我吗?我需要从Cetral Administration启用或启用任何功能或需要做更多的事情以允许该策略正常工作?我在库中有多个文档,这些文档的创建日期超过3天.保留政策的频率如何?日常?每周?

sharepoint-2010

8
推荐指数
1
解决办法
2万
查看次数

使用openmp进行并行冒泡排序

我写了一个用于冒泡排序算法的c ++代码,我不知道如何使用openmp使其并行,所以请帮助我.....这是代码:

#include "stdafx.h"    
#include <iostream>
#include <time.h>
#include <omp.h>
using namespace std;

int a[40001];
void sortArray(int [], int);
int q=0;

int _tmain(int argc, _TCHAR* argv[])
{   
int x=40000;
int values[40000];
for (int i=0;i<x;i++)
{
    values[i]=rand();
}
cout << "Sorting Array .......\n";
clock_t start = clock();
sortArray(values, x);
 cout << "The Array Now Sorted\n";
printf("Elapsed Time : %f\n", ((double)clock() - start) / CLOCKS_PER_SEC);
cout << "\n";
}
 void sortArray(int array[], int size)  
{
  bool swap;
   int temp;
  do
  {
   swap …
Run Code Online (Sandbox Code Playgroud)

c++ parallel-processing bubble-sort

3
推荐指数
1
解决办法
5770
查看次数

并行c#线程性能问题

此代码用于从彩色转换为黑白.

  • 我试图在代码中添加并行部分
  • 只是从灰度转变为黑白
  • 我试图给每个线程分配一些像素数量的cols

但性能根本没有改善.

我通过在2 for循环和计数器值增量中更改除数值(其代码为800)来尝试获得800*600图像.

此更改应使线程数增加或减少

结果 :

value |  num of thread |   time
 800       1              1.17 sec
 400       2              1.17 sec
 200       4              1.17 sec
and so on ...
Run Code Online (Sandbox Code Playgroud)

帮助我提高性能因为更大的图像需要8秒,我想让它平行

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Threading;

namespace IMG
{

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }
    string path = "";
    public void openimage()
    {
        if (openFileDialog1.ShowDialog() == …
Run Code Online (Sandbox Code Playgroud)

c# parallel-processing performance multithreading

1
推荐指数
1
解决办法
1613
查看次数

加速位图灰度转换,OpenMP是C#中的一个选项吗?

请帮助我使用openmp使这个代码并行这个代码是在按钮点击运行,文本框是128

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IMG
{
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    string path = "";
    public void openimage()
    {
        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
            path = openFileDialog1.FileName;
            Graphics g = this.CreateGraphics();
            g.Clear(this.BackColor);
            Bitmap curBitmap = new Bitmap(path);
            g.DrawImage(curBitmap, 200, 220, 200, 200);
        }
    }
    Bitmap bm;
    Bitmap gs;
    private void button1_Click(object sender, EventArgs e)
    {
        if (path == "") …
Run Code Online (Sandbox Code Playgroud)

c# parallel-processing image-processing openmp

0
推荐指数
1
解决办法
3305
查看次数